diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-08-28 17:10:36 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-08-28 17:10:36 +0300 |
commit | c38e8c2a695bf648fe8a614d39c11a56c80848e3 (patch) | |
tree | 3528b6cf942619d508d000fcb374ea07146fddf8 | |
parent | b94839324996ab3c9b0249eadc3930e54ffd1a86 (diff) | |
download | swayrice-c38e8c2a695bf648fe8a614d39c11a56c80848e3.tar.gz swayrice-c38e8c2a695bf648fe8a614d39c11a56c80848e3.zip |
Improve zsh title line
-rw-r--r-- | dotfiles/.config/zsh/.zshrc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dotfiles/.config/zsh/.zshrc b/dotfiles/.config/zsh/.zshrc index 4a21004..717a34c 100644 --- a/dotfiles/.config/zsh/.zshrc +++ b/dotfiles/.config/zsh/.zshrc @@ -52,11 +52,11 @@ function zle-keymap-select { } echo -ne '\e[5 q' # Use beam shape cursor on startup. -printf "\033]2;%s\a" "$PWD" # Set terminal window title to current dir +printf "\033]2;%s\a" "$HOST:$PWD" # Set terminal window title to current dir # Repeat for every new prompt -preexec() { +precmd () { echo -ne '\e[5 q' - printf "\033]2;%s\a" "$PWD" + printf "\033]2;%s\a" "$HOST:$PWD" } zle -N zle-keymap-select |