summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTrevor Creech <trevor.creech@involver.com>2010-09-20 17:31:17 -0700
committerRobby Russell <robby@planetargon.com>2010-09-30 21:00:38 -0700
commitb9056303669806be8e1e90eacfc471590c39f353 (patch)
tree3cadc0427f9f9b05cbdeaf5b5a674236b0ee8b37 /lib
parentd647a9b25c43b75eea6fee29f27affe5edc4b72e (diff)
downloadzsh-b9056303669806be8e1e90eacfc471590c39f353.tar.gz
zsh-b9056303669806be8e1e90eacfc471590c39f353.tar.bz2
zsh-b9056303669806be8e1e90eacfc471590c39f353.zip
Match xterm-color, the default OS X terminal
Diffstat (limited to 'lib')
-rw-r--r--lib/functions.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/functions.zsh b/lib/functions.zsh
index fcbe994be..561586cba 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -5,7 +5,7 @@ function title {
print -nR $'\033k'$1$'\033'\\\
print -nR $'\033]0;'$2$'\a'
- elif [[ $TERM == "xterm" || $TERM == "rxvt" ]]; then
+ elif [[ $TERM =~ "^xterm" || $TERM == "rxvt" ]]; then
# Use this one instead for XTerms:
print -nR $'\033]0;'$*$'\a'
fi