addet correct 'alt + Backspace' to delete and also move (with arrow keys) corrected

This commit is contained in:
pika 2024-08-24 21:01:09 +02:00
parent 4f280eecb9
commit ac13df165b

9
.zshrc
View file

@ -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