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
1 changed files with 3 additions and 2 deletions

View File

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