diff options
author | Alan Pearce | 2023-05-22 19:05:45 +0200 |
---|---|---|
committer | Alan Pearce | 2023-05-22 19:05:45 +0200 |
commit | d5fc1835ba5d73120ca5c7bc81923c942987e53b (patch) | |
tree | ea93492c1198b2e85bbfeeeaa3991d86fb8a7138 /user/zsh/zshrc | |
parent | 4d80dd995a23d751c3262f5a5ad1a95907e6c87d (diff) | |
download | nixfiles-d5fc1835ba5d73120ca5c7bc81923c942987e53b.tar.lz nixfiles-d5fc1835ba5d73120ca5c7bc81923c942987e53b.tar.zst nixfiles-d5fc1835ba5d73120ca5c7bc81923c942987e53b.zip |
zsh: edit current command line in $EDITOR with C-x C-e
Diffstat (limited to 'user/zsh/zshrc')
-rw-r--r-- | user/zsh/zshrc | 4 |
1 files changed, 4 insertions, 0 deletions
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 () { |