zsh: ctrl-x edits command line

This commit is contained in:
Jason Swank
2026-01-29 07:47:31 -05:00
parent 1204bace2c
commit 5367cf1492

View File

@@ -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)"