]> gitweb @ CieloNegro.org - sugar.git/blobdiff - dot-files/_zshrc
Auto commit by The Sugar System.
[sugar.git] / dot-files / _zshrc
index b995aef50d94b638569acf70d52bd9daff603982..60ac6167201e1ddd580dff31d11cf5443c81a0ff 100644 (file)
@@ -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,11 +277,27 @@ 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
+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*'
+
+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