forked from bkerley/zshkit
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path10_bindkey
More file actions
22 lines (16 loc) · 672 Bytes
/
Copy path10_bindkey
File metadata and controls
22 lines (16 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
bindkey "${key[Home]}" beginning-of-line
bindkey "${key[End]}" end-of-line
bindkey '^K' kill-whole-line # ctrl-k
bindkey "^R" history-incremental-search-backward # ctrl-r
bindkey "^A" beginning-of-line # ctrl-a
bindkey "^E" end-of-line # ctrl-e
bindkey "[B": history-search-forward # down arrow
bindkey "[A": history-search-backward # up arrow
bindkey '^[[A' history-beginning-search-backward
bindkey '^[[B' history-beginning-search-forward
# vi mode
bindkey -v
# use incremental search
bindkey ^R history-incremental-search-backward
# expand history
export HISTSIZE=250