浏览代码

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

Robby Russell 14 年之前
父节点
当前提交
7ab4d30fe1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/functions.zsh

+ 1 - 1
lib/functions.zsh

@@ -5,7 +5,7 @@ function title {
     print -nR $'\033k'$1$'\033'\\\
     print -nR $'\033k'$1$'\033'\\\
 
 
     print -nR $'\033]0;'$2$'\a'
     print -nR $'\033]0;'$2$'\a'
-  elif [[ $TERM =~ "^xterm" || $TERM == "rxvt" ]]; then
+  elif [[ ($TERM =~ "^xterm") ]] || [[ ($TERM == "rxvt") ]]; then
     # Use this one instead for XTerms:
     # Use this one instead for XTerms:
     print -nR $'\033]0;'$*$'\a'
     print -nR $'\033]0;'$*$'\a'
   fi
   fi