2019-05-02 04:48:04 +00:00
|
|
|
# CTRL+space to accept Autosuggest's suggestion.
|
|
|
|
bindkey '^ ' autosuggest-accept
|
2019-05-02 05:49:26 +00:00
|
|
|
|
2024-07-12 04:00:50 +00:00
|
|
|
# fzf
|
|
|
|
# If fzf is installed, source fzf key bindings.
|
2024-07-16 16:01:51 +00:00
|
|
|
if [[ -x "$(command -v fzf)" ]]; then
|
|
|
|
source <(fzf --zsh)
|
2024-07-12 04:00:50 +00:00
|
|
|
fi
|
|
|
|
|
2019-05-02 05:49:26 +00:00
|
|
|
# Open command in $EDITOR
|
|
|
|
bindkey '^E' edit-command-line
|
|
|
|
bindkey -M vicmd "v" edit-command-line
|
2019-08-09 02:08:16 +00:00
|
|
|
|
|
|
|
# Start of line
|
|
|
|
bindkey '^[[1~' beginning-of-line
|
|
|
|
bindkey -M vicmd '^[[1~' beginning-of-line
|
|
|
|
# End of line
|
|
|
|
bindkey '^[[4~' end-of-line
|
|
|
|
bindkey -M vicmd '^[[4~' end-of-line
|