Add editing of long command lines to zsh

This commit is contained in:
Trysdyn Black 2022-04-16 07:28:46 -07:00
parent 96e9a1c3d1
commit ecd5e16d98

7
.zshrc
View file

@ -33,7 +33,7 @@ if [[ -a /usr/bin/most ]]; then
export PAGER="most -w"
fi
# Key binds
# Generic navigation keybinds
bindkey "^[[H" beginning-of-line # HOME
bindkey "^[[F" end-of-line # END
bindkey "^[[3~" delete-char # DEL
@ -65,5 +65,10 @@ setopt appendhistory
autoload -Uz compinit && compinit
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
# Edit long command lines in vim with ^x^e
autoload -U edit-command-line
zle -N edit-command-line
bindkey '^x^e' edit-command-line
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh