2e41d06b7655067272cee1e54d2d66693136a90f

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Use quoted $TERM value everywhere

Diff

 1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
 2index f21b0b0419ac5298f50ed323a788dc11377831d5..58c6203a0663374c1af46a0cafb4a05fcde1db8b 100644
 3--- a/lib/termsupport.zsh
 4+++ b/lib/termsupport.zsh
 5@@ -15,7 +15,7 @@ function title {
 6 
 7   if [[ "$TERM" == screen* ]]; then
 8     print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
 9-  elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ $TERM == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
10+  elif [[ "$TERM" == xterm* ]] || [[ "$TERM" == rxvt* ]] || [[ "$TERM" == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
11     print -Pn "\e]2;$2:q\a" #set window name
12     print -Pn "\e]1;$1:q\a" #set icon (=tab) name
13   fi