151
|
1 # To see the key combo you want to use just do:
|
|
2 # cat > /dev/null
|
|
3 # And press it
|
|
4
|
|
5 bindkey "^K" kill-whole-line # ctrl-k
|
|
6 bindkey "^R" history-incremental-search-backward # ctrl-r
|
|
7 bindkey "^A" beginning-of-line # ctrl-a
|
|
8 bindkey "^E" end-of-line # ctrl-e
|
|
9 bindkey "[B" history-search-forward # down arrow
|
|
10 bindkey "[A" history-search-backward # up arrow
|
|
11 bindkey "^D" delete-char # ctrl-d
|
|
12 bindkey "^F" forward-char # ctrl-f
|
|
13 bindkey "^B" backward-char # ctrl-b
|
|
14 bindkey -e # Default to standard emacs bindings, regardless of editor string
|
|
15 # bind UP and DOWN arrow keys
|
|
16 bindkey '^[[A' history-substring-search-up
|
|
17 bindkey '^[[B' history-substring-search-down
|