aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-03-01 15:28:08 +0800
committergxlin <[email protected]>2021-03-01 15:28:08 +0800
commitc6a810bf52cebd4b4b4af7febf64634af907b8bc (patch)
tree0836e7450bbcb273b639ea66d824caa953c8f141 /.zshrc
parentfc8c282cf036c95527f783d5759c01c689534171 (diff)
downloaddotfiles-c6a810bf52cebd4b4b4af7febf64634af907b8bc.tar.gz
dotfiles-c6a810bf52cebd4b4b4af7febf64634af907b8bc.tar.bz2
dotfiles-c6a810bf52cebd4b4b4af7febf64634af907b8bc.zip
Add edit-command-line to .zshrc
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc6
1 files changed, 5 insertions, 1 deletions
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