12 lines
452 B
Bash
12 lines
452 B
Bash
# ===== keybindings
|
|
# use Vi(m) style key bindings.
|
|
bindkey -v
|
|
|
|
# ===== history bindings
|
|
# make ^P and ^N behave like arrow keys (scroll through history)
|
|
bindkey -a '^P' history-beginning-search-backward
|
|
bindkey -a '^N' history-beginning-search-forward
|
|
|
|
# re-enable incremental backward search for vim keybindings which is especially
|
|
# useful when the string is an argument and not the command.
|
|
bindkey '^R' history-incremental-pattern-search-backward
|