From 75bb034d4830276f80df859e0919f23a7ea21301 Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Mon, 1 Jun 2020 20:33:58 +0200 Subject: [PATCH] zsh: add shortcut to edit the command line in $VISUAL --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc b/.zshrc index d27a680..039a559 100644 --- a/.zshrc +++ b/.zshrc @@ -12,6 +12,11 @@ autoload -Uz compinit compinit # 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 if [[ -n $SSH_CONNECTION ]]; then HOST_LBL="%F{green}[%m]%f"