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/zshrc17
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
35setopt extended_glob 35setopt extended_glob
36 36
37alias -g L='| less' 37autoload -Uz add-zsh-hook
38alias -g S='&> /dev/null' 38
39alias -g G='| grep' 39_precmd_title() {
40alias -g B='&> /dev/null &' 40 print -Pn "\e]0;%~\a"
41alias -g BB='&> /dev/null &!' 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