From 7a18bc4a2120810f37b52e18f4fcfc4687145dc0 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 8 Oct 2022 17:55:27 +0200 Subject: [PATCH] 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. --- zsh/.config/zsh/.zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index efd8c82..d475cca 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -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