]> gitweb @ CieloNegro.org - sugar.git/commitdiff
Auto commit by The Sugar System.
authorPHO <pho@cielonegro.org>
Sat, 12 Nov 2016 08:04:36 +0000 (17:04 +0900)
committerPHO <pho@cielonegro.org>
Sat, 12 Nov 2016 08:04:36 +0000 (17:04 +0900)
dot-files/_zshrc

index 1b28a352233caecf120650d2ee5dc03d2dcf19cb..ed53aa7cbb4ac938f5e00739c4f602adf1510d38 100644 (file)
@@ -284,7 +284,13 @@ if [[ $(hostname) = "aria.cielonegro.org" ]]; then
     alias hengband='open ~/Applications/hengband*/Hengband*'
 
 elif [[ $(hostname) = "yukari.cielonegro.org" ]]; then
-    alias safari="ssh kurumi open -a Safari"
+    function safari () {
+        local -a args
+        for arg in $@; do
+            args=(${args[@]} $(printf %q "$arg"))
+        done
+        ssh kurumi open -a Safari ${args[@]}
+    }
 fi
 
 if [[ $(uname) = "Darwin" ]]; then