Use a shortened dir path for window title
Also respect named directories
This commit is contained in:
parent
2245d4506f
commit
f4b3948168
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue