711c1bcb40483c862e62bbd4528474b9c8009a48
- Author
- Ionel Cristian Mărieș <contact@ionelmc.ro>
- Committer
- Ionel Cristian Mărieș <contact@ionelmc.ro>
- Date
Message
Add support for "putty" $TERM in termsupport.zsh
Diff
1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
2index 4c5068e9b40484c9f68632b80fff4e241cc8d0a9..4780be8080f436e5e2db818dee9cefa7e1d3883e 100644
3--- a/lib/termsupport.zsh
4+++ b/lib/termsupport.zsh
5@@ -18,7 +18,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" == putty ]] || [[ "$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