all repos — nixfiles @ d5fc1835ba5d73120ca5c7bc81923c942987e53b

System and user configuration, managed by nix and home-manager

zsh: edit current command line in $EDITOR with C-x C-e
Alan Pearce alan@alanpearce.eu
Mon, 22 May 2023 19:05:45 +0200
commit

d5fc1835ba5d73120ca5c7bc81923c942987e53b

parent

4d80dd995a23d751c3262f5a5ad1a95907e6c87d

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M user/zsh/zshrcuser/zsh/zshrc
@@ -87,6 +87,10 @@ bindkey '\e^f' forward-argument bindkey '\e^d' backward-kill-argument
 bindkey '\e^k' kill-argument
 
+autoload -Uz edit-command-line
+zle -N edit-command-line
+bindkey '^x^e' edit-command-line
+
 sort=${commands[gsort]:-$commands[sort]}
 
 ds () {