mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Implemented using recommended pattern matching.
This commit is contained in:
parent
dcabadbd07
commit
ee216476cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue