7ab4d30fe17ba2fc4125685d393a2bd2671b5d5e

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge branch 'title-fix' of http://github.com/philips/oh-my-zsh into philips-title-fix

Diff

 1diff --git a/lib/functions.zsh b/lib/functions.zsh
 2index 561586cba657cb274f76b6a7a87743e154f006e4..e494f1f4d3153b753da1b0fc2f3b87be843931b2 100644
 3--- a/lib/functions.zsh
 4+++ b/lib/functions.zsh
 5@@ -5,7 +5,7 @@ function title {
 6     print -nR $'\033k'$1$'\033'\\\
 7 
 8     print -nR $'\033]0;'$2$'\a'
 9-  elif [[ $TERM =~ "^xterm" || $TERM == "rxvt" ]]; then
10+  elif [[ ($TERM =~ "^xterm") ]] || [[ ($TERM == "rxvt") ]]; then
11     # Use this one instead for XTerms:
12     print -nR $'\033]0;'$*$'\a'
13   fi