We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b332c6e commit 18f3e76Copy full SHA for 18f3e76
lib/termsupport.zsh
@@ -6,12 +6,14 @@ function title {
6
if [[ "$DISABLE_AUTO_TITLE" == "true" ]] || [[ "$EMACS" == *term* ]]; then
7
return
8
fi
9
+ setopt +o promptsubst
10
if [[ "$TERM" == screen* ]]; then
11
print -Pn "\ek$2:q\e\\" #set screen hardstatus, usually truncated at 20 chars
12
elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
13
print -Pn "\e]2;$2:q\a" #set window name
14
print -Pn "\e]1;$1:q\a" #set icon (=tab) name (will override window name on broken terminal)
15
16
+ setopt -o promptsubst
17
}
18
19
ZSH_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD
0 commit comments