aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-08-28 17:10:36 +0300
committerYaroslav <contact@yaroslavps.com>2020-08-28 17:10:36 +0300
commitc38e8c2a695bf648fe8a614d39c11a56c80848e3 (patch)
tree3528b6cf942619d508d000fcb374ea07146fddf8
parentb94839324996ab3c9b0249eadc3930e54ffd1a86 (diff)
downloadswayrice-c38e8c2a695bf648fe8a614d39c11a56c80848e3.tar.gz
swayrice-c38e8c2a695bf648fe8a614d39c11a56c80848e3.zip
Improve zsh title line
-rw-r--r--dotfiles/.config/zsh/.zshrc6
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