diff options
Diffstat (limited to 'user-profiles/zsh/zshrc')
| -rw-r--r-- | user-profiles/zsh/zshrc | 13 |
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 | |||
| 33 | zle -N bracketed-paste bracketed-paste-magic | 33 | zle -N bracketed-paste bracketed-paste-magic |
| 34 | 34 | ||
| 35 | setopt extended_glob | 35 | setopt extended_glob |
| 36 | |||
| 37 | autoload -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 | |||
| 47 | add-zsh-hook precmd _precmd_title | ||
| 48 | add-zsh-hook preexec _preexec_title | ||
