diff options
Diffstat (limited to 'user-profiles/zsh/zshrc')
| -rw-r--r-- | user-profiles/zsh/zshrc | 20 |
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 | |||
| 24 | bindkey -e | 24 | bindkey -e |
| 25 | bindkey ';5C' emacs-forward-word | 25 | bindkey ';5C' emacs-forward-word |
| 26 | bindkey ';5D' emacs-backward-word | 26 | bindkey ';5D' emacs-backward-word |
| 27 | bindkey '^[[1;5C' emacs-forward-word | ||
| 28 | bindkey '^[[1;5D' emacs-backward-word | ||
| 29 | bindkey '^H' backward-kill-word | ||
| 27 | 30 | ||
| 28 | autoload -Uz url-quote-magic bracketed-paste-magic | 31 | autoload -Uz url-quote-magic bracketed-paste-magic |
| 29 | zle -N self-insert url-quote-magic | 32 | zle -N self-insert url-quote-magic |
| 30 | zle -N bracketed-paste bracketed-paste-magic \ No newline at end of file | 33 | zle -N bracketed-paste bracketed-paste-magic |
| 34 | |||
| 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 | ||
