mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Use truncated hostnames in zsh integration window title
This commit is contained in:
parent
dc41fb3b1d
commit
da3bb0a4cb
1 changed files with 2 additions and 2 deletions
|
|
@ -268,9 +268,9 @@ _ksi_deferred_init() {
|
|||
|
||||
if [[ "$is_ssh_session" == "y" ]]; then
|
||||
functions[_ksi_precmd]+="
|
||||
builtin print -rnu $_ksi_fd \$'\\e]2;'\"\${(V)HOST-}: \${(%):-%(4~|…/%3~|%~)}\"\$'\\a'"
|
||||
builtin print -rnu $_ksi_fd \$'\\e]2;'\"\${(V)${HOST-}/%.*/}: \${(%):-%(4~|…/%3~|%~)}\"\$'\\a'"
|
||||
functions[_ksi_preexec]+="
|
||||
builtin print -rnu $_ksi_fd \$'\\e]2;'\"\${(V)HOST-}: \${(V)1}\"\$'\\a'"
|
||||
builtin print -rnu $_ksi_fd \$'\\e]2;'\"\${(V)${HOST-}/%.*/}: \${(V)1}\"\$'\\a'"
|
||||
else
|
||||
functions[_ksi_precmd]+="
|
||||
builtin print -rnu $_ksi_fd \$'\\e]2;'\"\${(%):-%(4~|…/%3~|%~)}\"\$'\\a'"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue