From 7b67737a2188d42049099064836dfbc315f89029 Mon Sep 17 00:00:00 2001 From: James Dixon Date: Thu, 14 Nov 2024 14:14:36 -0500 Subject: [PATCH] Add zsh command line editing like bash --- config/zsh/.zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 8c15ae4..675682a 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -40,6 +40,7 @@ setopt auto_menu # tab completion setopt prompt_subst # command substitution in prompt unsetopt correct_all autoload -Uz compinit && compinit +autoload -z edit-command-line # Deduplicate path typeset -U path @@ -50,6 +51,8 @@ bindkey '\e[3~' delete-char bindkey '^p' history-search-backward bindkey '^n' history-search-forward bindkey ' ' magic-space +zle -N edit-command-line +bindkey "^X^E" edit-command-line # * * * * * * # Aliases *