From 5367cf1492bc2cf2d601611cf5d03f782b1012a0 Mon Sep 17 00:00:00 2001 From: Jason Swank Date: Thu, 29 Jan 2026 07:47:31 -0500 Subject: [PATCH] zsh: ctrl-x edits command line --- zsh/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index 237c208..7024314 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -79,6 +79,11 @@ if [ -e /usr/bin/keychain ]; then eval $(/usr/bin/keychain --eval -Q --quiet id_ed25519) fi +# ctrl-x opens up the command line in $EDITOR +autoload -U edit-command-line +zle -N edit-command-line +bindkey "^X" edit-command-line + # direnv setup whence -p direnv &>/dev/null && eval "$(direnv hook zsh)"