zsh: precmd() don't echo trailing newline

This commit is contained in:
teutat3s 2022-05-02 01:23:41 +02:00
parent c3c7b63d73
commit 393302373b
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

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