zsh: add shortcut to edit the command line in $VISUAL

This commit is contained in:
Grigory Shipunov 2020-06-01 20:33:58 +02:00
parent 935909bb70
commit 75bb034d48
No known key found for this signature in database
GPG key ID: 77BB6C3E4771EE7C

5
.zshrc
View file

@ -12,6 +12,11 @@ autoload -Uz compinit
compinit compinit
# End of lines added by compinstall # End of lines added by compinstall
# Edit the command in editor
autoload -z edit-command-line
zle -N edit-command-line
bindkey "^X^E" edit-command-line
# Prompt # Prompt
if [[ -n $SSH_CONNECTION ]]; then if [[ -n $SSH_CONNECTION ]]; then
HOST_LBL="%F{green}[%m]%f" HOST_LBL="%F{green}[%m]%f"