From d5fc1835ba5d73120ca5c7bc81923c942987e53b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 22 May 2023 19:05:45 +0200 Subject: zsh: edit current command line in $EDITOR with C-x C-e --- user/zsh/zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'user') diff --git a/user/zsh/zshrc b/user/zsh/zshrc index 831ada1e..8b66be24 100644 --- a/user/zsh/zshrc +++ b/user/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 () { -- cgit 1.4.1