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