63d7500cf1a62214f44a8c690852e687902fb3d3
- Author
- Dawid Ferenczy <dawid@ferenczy.cz>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Added setting of the window title in Cygwin
Diff
1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
2index 9750a9fe8add31d5cc6e5a476973baa6dfdb76e5..f11a7dd182b4b454f64ed2368f8c3ab929efa65e 100644
3--- a/lib/termsupport.zsh
4+++ b/lib/termsupport.zsh
5@@ -9,7 +9,7 @@
6 function title {
7 emulate -L zsh
8 setopt prompt_subst
9-
10+
11 [[ "$EMACS" == *term* ]] && return
12
13 # if $2 is unset use $1 as default
14@@ -18,7 +18,7 @@ function title {
15
16 if [[ "$TERM" == screen* ]]; then
17 print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
18- elif [[ "$TERM" == xterm* ]] || [[ "$TERM" == putty* ]] || [[ "$TERM" == rxvt* ]] || [[ "$TERM" == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
19+ elif [[ "$TERM" == xterm* ]] || [[ "$TERM" == putty* ]] || [[ "$TERM" == rxvt* ]] || [[ "$TERM" == ansi ]] || [[ "$TERM" == cygwin ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
20 print -Pn "\e]2;$2:q\a" #set window name
21 print -Pn "\e]1;$1:q\a" #set icon (=tab) name
22 fi