Skip to content

Commit f0ece75

Browse files
committed
Use long window title for screen hardstatus.
1 parent 3cbf049 commit f0ece75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/termsupport.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
function title {
66
[ "$DISABLE_AUTO_TITLE" != "true" ] || return
77
if [[ "$TERM" == screen* ]]; then
8-
print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
8+
print -Pn "\ek$2:q\e\\" #set screen hardstatus, usually truncated at 20 chars
99
elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
1010
print -Pn "\e]2;$2:q\a" #set window name
1111
print -Pn "\e]1;$1:q\a" #set icon (=tab) name (will override window name on broken terminal)

0 commit comments

Comments
 (0)