summaryrefslogtreecommitdiff
path: root/user-profiles/zsh/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'user-profiles/zsh/zshrc')
-rw-r--r--user-profiles/zsh/zshrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/user-profiles/zsh/zshrc b/user-profiles/zsh/zshrc
index af3aca64..a41c9d9c 100644
--- a/user-profiles/zsh/zshrc
+++ b/user-profiles/zsh/zshrc
@@ -33,3 +33,16 @@ zle -N self-insert url-quote-magic
33zle -N bracketed-paste bracketed-paste-magic 33zle -N bracketed-paste bracketed-paste-magic
34 34
35setopt extended_glob 35setopt extended_glob
36
37autoload -Uz add-zsh-hook
38
39_precmd_title() {
40 print -Pn "\e]0;%~\a"
41}
42
43_preexec_title() {
44 print -Pn "\e]0;%~ — $2\a"
45}
46
47add-zsh-hook precmd _precmd_title
48add-zsh-hook preexec _preexec_title