Add editing of long command lines to zsh
This commit is contained in:
parent
96e9a1c3d1
commit
ecd5e16d98
1 changed files with 6 additions and 1 deletions
7
.zshrc
7
.zshrc
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue