[tmux] show current cmd in titlebar

This commit is contained in:
Marco Thomas
2022-12-05 00:06:50 +01:00
parent 402d8064c9
commit ea7e645d6a
3 changed files with 6 additions and 24 deletions

View File

@@ -22,7 +22,7 @@ case $TERM in
(*xterm* | rxvt | alacritty)
# This is seen when the shell prompts for input.
function precmd {
print -Pn "\e]0;%m: %(1j,%j job%(2j|s|) - ,)%~\a"
print -Pn "\e]0;%m: %~\a"
}
# This is seen while the shell waits for a command to complete.
function preexec {