Skip to content

Commit

Permalink
Revert "Re-order title/tab setting to make window titles work on OSX …
Browse files Browse the repository at this point in the history
…terminal which"

Was causing iTerm title to disappear entirely..

This reverts commit d4ea399.
  • Loading branch information
robbyrussell committed Mar 16, 2011
1 parent 2355649 commit 52df854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/termsupport.zsh
Expand Up @@ -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]1;$1\a" #set icon (=tab) name (will override window name on broken terminal)
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)
fi
}

Expand Down

0 comments on commit 52df854

Please sign in to comment.