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: teutat3s
GPG key ID: 4FA1D3FA524F22C1

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 -n "\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