mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-15 20:46:45 +08:00
Merge branch 'title-fix' of http://github.com/philips/oh-my-zsh into philips-title-fix
This commit is contained in:
commit
7ab4d30fe1
1 file changed
+1
-1
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user