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:
parent
cb698090c6
commit
7a18bc4a21
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue