zsh: Make c-e always switch to editor

Added always listening to c-e to switch to edit current line in editor,
regardless of already being in vi-command mode or not.
This commit is contained in:
Marty Oehme 2022-10-08 17:55:27 +02:00
parent cb698090c6
commit 7a18bc4a21
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9

View file

@ -70,13 +70,13 @@ prompt pure
# load additional aliases # load additional aliases
if [ -d "$CONFDIR/sh/alias.d" ]; then if [ -d "$CONFDIR/sh/alias.d" ]; then
for _alias in "$CONFDIR/sh/alias.d"/*.sh; do for _alias in "$CONFDIR/sh/alias.d"/*.sh; do
. "$_alias" source "$_alias"
done done
unset _alias unset _alias
fi fi
if [ -d "$ZSHCONFDIR/alias.d" ]; then if [ -d "$ZSHCONFDIR/alias.d" ]; then
for _alias in "$ZSHCONFDIR/alias.d"/*.sh; do for _alias in "$ZSHCONFDIR/alias.d"/*.sh; do
. "$_alias" source "$_alias"
done done
unset _alias unset _alias
fi fi
@ -171,6 +171,7 @@ bindkey -M isearch '^N' history-incremental-search-forward
# Send command to editor and back for execution # Send command to editor and back for execution
zle -N edit-command-line zle -N edit-command-line
bindkey '^e' edit-command-line bindkey '^e' edit-command-line
bindkey -M vicmd '^e' edit-command-line
# Deduplicate PATH - remove any duplicate entries from PATH # Deduplicate PATH - remove any duplicate entries from PATH
# from: https://unix.stackexchange.com/questions/40749/remove-duplicate-path-entries-with-awk-command # from: https://unix.stackexchange.com/questions/40749/remove-duplicate-path-entries-with-awk-command