summary refs log tree commit diff stats
path: root/user/zsh
diff options
context:
space:
mode:
authorAlan Pearce2023-05-22 19:05:45 +0200
committerAlan Pearce2023-05-22 19:05:45 +0200
commitd5fc1835ba5d73120ca5c7bc81923c942987e53b (patch)
treeea93492c1198b2e85bbfeeeaa3991d86fb8a7138 /user/zsh
parent4d80dd995a23d751c3262f5a5ad1a95907e6c87d (diff)
downloadnixfiles-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')
-rw-r--r--user/zsh/zshrc4
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 () {