diff options
Diffstat (limited to 'user-profiles/zsh/zshrc')
| -rw-r--r-- | user-profiles/zsh/zshrc | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/user-profiles/zsh/zshrc b/user-profiles/zsh/zshrc index ed614182..a41c9d9c 100644 --- a/user-profiles/zsh/zshrc +++ b/user-profiles/zsh/zshrc | |||
| @@ -34,8 +34,15 @@ zle -N bracketed-paste bracketed-paste-magic | |||
| 34 | 34 | ||
| 35 | setopt extended_glob | 35 | setopt extended_glob |
| 36 | 36 | ||
| 37 | alias -g L='| less' | 37 | autoload -Uz add-zsh-hook |
| 38 | alias -g S='&> /dev/null' | 38 | |
| 39 | alias -g G='| grep' | 39 | _precmd_title() { |
| 40 | alias -g B='&> /dev/null &' | 40 | print -Pn "\e]0;%~\a" |
| 41 | alias -g BB='&> /dev/null &!' | 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 | ||
