From: PHO Date: Fri, 25 Sep 2009 10:15:33 +0000 (+0900) Subject: Auto commit by The Sugar System. X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=325279eb6ee8ef59af90f179c5e61837c8f1568b;p=sugar.git Auto commit by The Sugar System. --- diff --git a/dot-files/_zshrc b/dot-files/_zshrc index b22c34f..15a7d85 100644 --- a/dot-files/_zshrc +++ b/dot-files/_zshrc @@ -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 }