]> gitweb @ CieloNegro.org - sugar.git/commitdiff
Auto commit by The Sugar System.
authorPHO <pho@cielonegro.org>
Fri, 25 Sep 2009 10:15:33 +0000 (19:15 +0900)
committerPHO <pho@cielonegro.org>
Fri, 25 Sep 2009 10:15:33 +0000 (19:15 +0900)
dot-files/_zshrc

index b22c34f2bdd7d0982889d07a4ca85fc3a00cbce6..15a7d85204e7f5a97a2b1b9b4ca5a90cf5085a87 100644 (file)
@@ -53,7 +53,7 @@ setopt inc_append_history
 setopt share_history
 
 function _we_are_in_gnu_screen () {
-    [ "$WINDOW" != "" ]
+    [[ "$WINDOW" != "" ]]
 }
 
 _prompt_base='%B[%n@%m] %{%(?.$fg[green].$fg[red])%}%#%{$reset_color%}%b '
@@ -69,7 +69,7 @@ fi
 function preexec() { # Hook
     if { _we_are_in_gnu_screen } then
         # Set the window title of GNU Screen.
-        local cmd=${1[(wr)^(*=*|sudo|nice|env|time|-*|[0-9]*)]}
+        local cmd=${1[(wr)^(*=*|sudo|nice|env|time|ssh|-*|[0-9]*)]}
         printf "\ek$cmd\e\\"
     fi
 }