diff options
Diffstat (limited to 'zsh/zshrc')
-rw-r--r-- | zsh/zshrc | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -66,8 +66,8 @@ alias d='dirs -v' | |||
66 | for index ({1..9}) alias "$index"="cd +${index}"; unset index | 66 | for index ({1..9}) alias "$index"="cd +${index}"; unset index |
67 | 67 | ||
68 | 68 | ||
69 | # create a zkbd compatible hash; | 69 | # Create a zkbd compatible hash |
70 | # to add other keys to this hash, see: man 5 terminfo | 70 | # To add other keys to this hash, see: man 5 terminfo |
71 | typeset -g -A key | 71 | typeset -g -A key |
72 | 72 | ||
73 | key[Home]="${terminfo[khome]}" | 73 | key[Home]="${terminfo[khome]}" |
@@ -83,8 +83,11 @@ key[PageUp]="${terminfo[kpp]}" | |||
83 | key[PageDown]="${terminfo[knp]}" | 83 | key[PageDown]="${terminfo[knp]}" |
84 | key[Shift-Tab]="${terminfo[kcbt]}" | 84 | key[Shift-Tab]="${terminfo[kcbt]}" |
85 | 85 | ||
86 | # setup key accordingly | ||
87 | bindkey -- ${key[Shift-Tab]} reverse-menu-complete | 86 | bindkey -- ${key[Shift-Tab]} reverse-menu-complete |
87 | |||
88 | insert-first-word () { zle insert-last-word -- -1 1 } | ||
89 | zle -N insert-first-word | ||
90 | bindkey '^[,' insert-first-word | ||
88 | #bindkey -- "\C-A" beginning-of-line | 91 | #bindkey -- "\C-A" beginning-of-line |
89 | #bindkey -- "\C-E" end-of-line | 92 | #bindkey -- "\C-E" end-of-line |
90 | #bindkey -- "\C-d" delete-char | 93 | #bindkey -- "\C-d" delete-char |