1
0
Fork 0

Improve window titles

This commit is contained in:
Malte Brandy 2021-03-08 18:02:25 +01:00
parent 6d9616f9bb
commit 063af68e7b
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
2 changed files with 2 additions and 4 deletions

View file

@ -237,6 +237,7 @@ in {
set pgp_use_gpg_agent = yes
set pgp_default_key="${gpg}"
set timeout = 5
set ts_enabled = yes
set abort_noattach = ask-no
set abort_noattach_regex = "(hängt an|anhäng|anhang|anbei|angehängt|attach|attached|attachments?)"

View file

@ -17,13 +17,10 @@ function title {
: ${2=$1}
case "$TERM" in
cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty|st*)
cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty|st*|screen*|tmux*)
print -Pn "\e]2;${2:q}\a" # set window name
print -Pn "\e]1;${1:q}\a" # set tab name
;;
screen*|tmux*)
printf '\033]2;%s\033\\' "`print -Pn "${1:q}"`"
;;
*)
if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
print -Pn "\e]2;${2:q}\a" # set window name