Match xterm-color, the default OS X terminal

master
Trevor Creech 16 years ago committed by Robby Russell
parent d647a9b25c
commit b905630366
  1. 2
      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

Loading…
Cancel
Save