X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=dot-files%2F_zshrc;h=60ac6167201e1ddd580dff31d11cf5443c81a0ff;hb=ef68f6d3f4ac731c93d98437968afc459e6ac3c1;hp=8c8bbe333bd8251d3ed664e8dc6d7cea018e0e50;hpb=538044d84aa229049c83d0be84f7aa4b6aa69056;p=sugar.git diff --git a/dot-files/_zshrc b/dot-files/_zshrc index 8c8bbe3..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" @@ -246,6 +246,7 @@ function lv() { lv_cmd=("more") else echo >&2 "$0: no pager commands are found" + return 1 fi command "${lv_cmd[@]}" "$@" @@ -276,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' @@ -293,7 +310,8 @@ if [[ $(uname) = "Darwin" ]]; then alias l='ls -lhw' alias lls='ls -lahw' - alias top='/usr/bin/top -X -o cpu' + #alias top='/usr/bin/top -X -o cpu' + alias top='/usr/bin/top -o cpu' else alias ls='ls -F' alias la='ls -a'