mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
Use a shortened dir path for window title
Also respect named directories
This commit is contained in:
@@ -72,8 +72,9 @@
|
||||
if [[ "$_ksi_prompt[state]" == "first-run" ]]; then
|
||||
_ksi_install_completion
|
||||
fi
|
||||
# Set kitty window title to the cwd
|
||||
_ksi_set_title "${PWD/$HOME/~}"
|
||||
# Set kitty window title to the cwd, appropriately shortened, see
|
||||
# https://unix.stackexchange.com/questions/273529/shorten-path-in-zsh-prompt
|
||||
_ksi_set_title $(print -P '%(4~|…/%3~|%~)')
|
||||
|
||||
# Prompt marking
|
||||
if [[ "$_ksi_prompt[mark]" == "y" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user