Skip to content

Commit 3cbf049

Browse files
committed
Include user and hostname in window title during command execution.
1 parent 48159fe commit 3cbf049

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
@@ -25,5 +25,5 @@ function preexec {
2525
emulate -L zsh
2626
setopt extended_glob
2727
local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd
28-
title "$CMD" "%100>...>$2%<<"
28+
title "$CMD" "%n@%m: %100>...>$2%<<"
2929
}

0 commit comments

Comments
 (0)