[ADD][ZSH] Command line editing using EDITOR

This commit is contained in:
Bruno BELANYI 2019-12-05 17:04:28 +01:00
parent 6f8d945ed3
commit ac7ed4a49b

View file

@ -34,6 +34,12 @@ bindkey "\e[3~" delete-char
# Fix Ctrl+u killing from the cursor instead of the whole line
bindkey \^U backward-kill-line
# Use Ctrl+x-(Ctrl+)e to edit the current command line in VISUAL/EDITOR
autoload -U edit-command-line
zle -N edit-command-line
bindkey '^xe' edit-command-line
bindkey '^x^e' edit-command-line
# Completion configuration
zstyle :compinstall filename '/home/ambroisie/.zshrc'
autoload -Uz compinit