X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=dot-files%2F_zshrc;h=60ac6167201e1ddd580dff31d11cf5443c81a0ff;hb=176019f33f06ef45e85357dcd72a1b81a9c5a82d;hp=dd9663c67997435137c2df21369bad09fcca75b2;hpb=178ef467454283740e5870b68a1cecdcf0ad8a5b;p=sugar.git diff --git a/dot-files/_zshrc b/dot-files/_zshrc index dd9663c..60ac616 100644 --- a/dot-files/_zshrc +++ b/dot-files/_zshrc @@ -2,7 +2,7 @@ bindkey -e stty -ixon ixany -stty erase '^H' +#stty erase '^H' # The following lines were added by compinstall zstyle :compinstall filename "$HOME/.zshrc" @@ -277,16 +277,32 @@ alias w3mb="w3m -O UTF-8 -B" alias aria-emacs="ssh -f -X admin@aria.cielonegro.org emacsclient -c" alias pho-dev-boinc="ssh -f -X pho@pho.dev.office.ymir.co.jp env LANG=C /home/pho/var/BOINC/run_manager" -if [ $(hostname) = "aria.cielonegro.org" ]; then - alias safari="open -a Safari" +if [[ $(hostname) = "aria.cielonegro.org" ]]; then alias unstuff='open -a StuffIt\ Expander.app' alias pa='open -a NiseRingo.app' alias heboris='open /Applications/HeborisUEMac/exe/Heboris\ OpenGL.app' alias hengband='open ~/Applications/hengband*/Hengband*' - alias syssleep='sudo shutdown -s now' + +elif [[ $(hostname) = "yukari.cielonegro.org" ]]; then + function safari () { + local -a args + for arg in $@; do + args=(${args[@]} $(printf %q "$arg")) + done + ssh kurumi open -a Safari ${args[@]} + } + function mfirefox () { + local -a args + for arg in $@; do + args=(${args[@]} $(printf %q "$arg")) + done + ssh kurumi open -a Firefox ${args[@]} + } fi if [[ $(uname) = "Darwin" ]]; then + alias safari="open -a Safari" + alias ldd="otool -L" alias ls='ls -Fw'