alacritty update dynamic title

This commit is contained in:
Marco Thomas
2021-03-27 12:40:05 +01:00
parent 7bb338ea0c
commit 9a3d18741a

View File

@@ -29,12 +29,12 @@ case $TERM in
# Write some info to terminal title. # Write some info to terminal title.
# This is seen when the shell prompts for input. # This is seen when the shell prompts for input.
function precmd { function precmd {
print -Pn "\e]0;Alacritty@%(1j,%j job%(2j|s|); ,)%~\a" print -Pn "\e]0;Alacritty - %(1j,%j job%(2j|s|); ,)%~\a"
} }
# Write command and args to terminal title. # Write command and args to terminal title.
# This is seen while the shell waits for a command to complete. # This is seen while the shell waits for a command to complete.
function preexec { function preexec {
printf "\033]0;%s\a" "$1" printf "\033]0;Alacritty - %s\a" "$1"
} }
;; ;;