aboutsummaryrefslogtreecommitdiffhomepage
path: root/zsh/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zshrc')
-rw-r--r--zsh/zshrc9
1 files changed, 6 insertions, 3 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index d8044f1..830ff57 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -66,8 +66,8 @@ alias d='dirs -v'
66for index ({1..9}) alias "$index"="cd +${index}"; unset index 66for 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
71typeset -g -A key 71typeset -g -A key
72 72
73key[Home]="${terminfo[khome]}" 73key[Home]="${terminfo[khome]}"
@@ -83,8 +83,11 @@ key[PageUp]="${terminfo[kpp]}"
83key[PageDown]="${terminfo[knp]}" 83key[PageDown]="${terminfo[knp]}"
84key[Shift-Tab]="${terminfo[kcbt]}" 84key[Shift-Tab]="${terminfo[kcbt]}"
85 85
86# setup key accordingly
87bindkey -- ${key[Shift-Tab]} reverse-menu-complete 86bindkey -- ${key[Shift-Tab]} reverse-menu-complete
87
88insert-first-word () { zle insert-last-word -- -1 1 }
89zle -N insert-first-word
90bindkey '^[,' 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