From ac13df165b3368f14ada7473c1e751b281f2dde7 Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 24 Aug 2024 21:01:09 +0200 Subject: [PATCH] addet correct 'alt + Backspace' to delete and also move (with arrow keys) corrected --- .zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.zshrc b/.zshrc index 1f18a8b..88c7cd3 100644 --- a/.zshrc +++ b/.zshrc @@ -29,6 +29,15 @@ autoload -Uz compinit && compinit bindkey -e +# Use Alt + Backspace to delete the previous word +bindkey '^[^?' backward-kill-word + +# Use Alt + Left Arrow to move to the previous word +bindkey '^[[1;3D' backward-word + +# Use Alt + Right Arrow to move to the next word +bindkey '^[[1;3C' forward-word + setopt appendhistory setopt sharehistory setopt hist_ignore_space