Merge pull request 'Improve terminal pwd title by shortening home to ~' (#70) from fix/shorten-home-to-tilde-zsh into main

Reviewed-on: https://git.b12f.io/pub-solar/os/pulls/70
Reviewed-by: teutat3s <teutates@mailbox.org>
This commit is contained in:
Benjamin Bädorf 2022-04-30 19:51:34 +00:00
commit fdf167d92a

View file

@ -85,7 +85,8 @@ in
stty erase '^?' stty erase '^?'
precmd () { precmd () {
echo -e -n "\e]2;$(pwd)\e\\" DIR_NAME=$(pwd | sed "s|^$HOME|~|g")
echo -e "\e]2;$DIR_NAME\e\\"
} }
# If a command is not found, show me where it is # If a command is not found, show me where it is