Browse code

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

Robby Russell authored on 09/10/2010 at 16:55:52
Showing 1 changed files
... ...
@@ -5,7 +5,7 @@ function title {
5 5
     print -nR $'\033k'$1$'\033'\\\
6 6
 
7 7
     print -nR $'\033]0;'$2$'\a'
8
-  elif [[ $TERM =~ "^xterm" || $TERM == "rxvt" ]]; then
8
+  elif [[ ($TERM =~ "^xterm") ]] || [[ ($TERM == "rxvt") ]]; then
9 9
     # Use this one instead for XTerms:
10 10
     print -nR $'\033]0;'$*$'\a'
11 11
   fi