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:
commit
fdf167d92a
|
@ -85,7 +85,8 @@ in
|
|||
stty erase '^?'
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue