mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 06:37:11 +08:00
Match xterm-color, the default OS X terminal
This commit is contained in:
parent
d647a9b25c
commit
b905630366
|
@ -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…
Reference in New Issue
Block a user