summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatt Cable <wozz@wookie.net>2011-03-13 17:10:13 -0600
committerMatt Cable <wozz@wookie.net>2011-03-13 17:11:32 -0600
commitd4ea399b04ef57dd31097eadc316305d1e42a194 (patch)
tree899e96d8e5664fc02f461cb1ede65fd6f2d8723c /lib
parent746a10368acd38d80cd35c2b97202a9187d58a05 (diff)
downloadzsh-d4ea399b04ef57dd31097eadc316305d1e42a194.tar.gz
zsh-d4ea399b04ef57dd31097eadc316305d1e42a194.tar.bz2
zsh-d4ea399b04ef57dd31097eadc316305d1e42a194.zip
Re-order title/tab setting to make window titles work on OSX terminal which
doesn't support tabs titles.
Diffstat (limited to 'lib')
-rw-r--r--lib/termsupport.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
index e1e536690..2843eb075 100644
--- a/lib/termsupport.zsh
+++ b/lib/termsupport.zsh
@@ -6,8 +6,8 @@ function title {
if [[ "$TERM" == "screen" ]]; then
print -Pn "\ek$1\e\\" #set screen hardstatus, usually truncated at 20 chars
elif [[ ($TERM =~ "^xterm") ]] || [[ ($TERM == "rxvt") ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
- print -Pn "\e]2;$2\a" #set window name
print -Pn "\e]1;$1\a" #set icon (=tab) name (will override window name on broken terminal)
+ print -Pn "\e]2;$2\a" #set window name
fi
}