From c6a810bf52cebd4b4b4af7febf64634af907b8bc Mon Sep 17 00:00:00 2001 From: gxlin Date: Mon, 1 Mar 2021 15:28:08 +0800 Subject: Add edit-command-line to .zshrc --- .zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index c5c56a3..1d67e8f 100644 --- a/.zshrc +++ b/.zshrc @@ -2,9 +2,13 @@ setopt histignorealldups sharehistory # Use emacs keybindings even if our EDITOR is set to vi bindkey -e - EDITOR=vim +# Edit command line +autoload -U edit-command-line +zle -N edit-command-line +bindkey '^x^e' edit-command-line + # Keep 1000 lines of history within the shell and save it to ~/.zsh_history: HISTSIZE=1000 SAVEHIST=1000 -- cgit v1.2.3