From 09af945a93a07b5c636586991ee65ff72766c627 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 9 Oct 2020 10:53:58 +0100 Subject: [PATCH] feat(shell): add C-x C-e keybinding to open current command in EDITOR --- zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zshrc b/zshrc index ab470cb..796cda6 100644 --- a/zshrc +++ b/zshrc @@ -78,6 +78,14 @@ zstyle ':completion:*:descriptions' format '%B%d%b' zstyle ':completion:*:make:*:targets' call-command true zstyle ':completion:*:make:*' tag-order targets +# ============================================================================== +# Edit command line +# ============================================================================== + +autoload -z edit-command-line +zle -N edit-command-line +bindkey "^X^E" edit-command-line + # ============================================================================== # Private Dotfiles # ==============================================================================