dotfiles/zsh/modules/keybinds/init.zsh
2024-07-16 12:01:51 -04:00

20 lines
469 B
Bash

# CTRL+space to accept Autosuggest's suggestion.
bindkey '^ ' autosuggest-accept
# fzf
# If fzf is installed, source fzf key bindings.
if [[ -x "$(command -v fzf)" ]]; then
source <(fzf --zsh)
fi
# Open command in $EDITOR
bindkey '^E' edit-command-line
bindkey -M vicmd "v" edit-command-line
# 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