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/zshrc20
1 files changed, 19 insertions, 1 deletions
diff --git a/user-profiles/zsh/zshrc b/user-profiles/zsh/zshrc
index a83a8069..a41c9d9c 100644
--- a/user-profiles/zsh/zshrc
+++ b/user-profiles/zsh/zshrc
@@ -24,7 +24,25 @@ setopt ignore_eof
24bindkey -e 24bindkey -e
25bindkey ';5C' emacs-forward-word 25bindkey ';5C' emacs-forward-word
26bindkey ';5D' emacs-backward-word 26bindkey ';5D' emacs-backward-word
27bindkey '^[[1;5C' emacs-forward-word
28bindkey '^[[1;5D' emacs-backward-word
29bindkey '^H' backward-kill-word
27 30
28autoload -Uz url-quote-magic bracketed-paste-magic 31autoload -Uz url-quote-magic bracketed-paste-magic
29zle -N self-insert url-quote-magic 32zle -N self-insert url-quote-magic
30zle -N bracketed-paste bracketed-paste-magic \ No newline at end of file 33zle -N bracketed-paste bracketed-paste-magic
34
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