From 325279eb6ee8ef59af90f179c5e61837c8f1568b Mon Sep 17 00:00:00 2001 From: PHO Date: Fri, 25 Sep 2009 19:15:33 +0900 Subject: [PATCH] Auto commit by The Sugar System. --- dot-files/_zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.40.0