diff options
author | Marc Cornellà <marc.cornella@live.com> | 2015-02-10 19:53:40 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2015-02-10 19:53:40 +0100 |
commit | 2e41d06b7655067272cee1e54d2d66693136a90f (patch) | |
tree | 83b5dd5abe34e0f48097ca4711139853d42a51d1 /lib | |
parent | b7e5dd35efb0750634eb16b7040337ce80f67684 (diff) | |
download | zsh-2e41d06b7655067272cee1e54d2d66693136a90f.tar.gz zsh-2e41d06b7655067272cee1e54d2d66693136a90f.tar.bz2 zsh-2e41d06b7655067272cee1e54d2d66693136a90f.zip |
Use quoted $TERM value everywhere
Diffstat (limited to 'lib')
-rw-r--r-- | lib/termsupport.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index f21b0b041..58c6203a0 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -15,7 +15,7 @@ function title { if [[ "$TERM" == screen* ]]; then print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars - elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ $TERM == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then + elif [[ "$TERM" == xterm* ]] || [[ "$TERM" == rxvt* ]] || [[ "$TERM" == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then print -Pn "\e]2;$2:q\a" #set window name print -Pn "\e]1;$1:q\a" #set icon (=tab) name fi |