Add bindkeys arrow jump word

This commit is contained in:
2026-02-19 09:00:48 -06:00
committed by GitHub
parent 2c30321165
commit c5f51d5b3f

11
.zshrc
View File

@@ -72,6 +72,17 @@ setopt histignorealldups sharehistory
# Use emacs keybindings even if EDITOR is set to vi
bindkey -e
###################################################
# Custom key bindings for cursor navigation
###################################################
# Bind Ctrl + Right Arrow to move forward one word
bindkey "^[[1;5C" forward-word
# Bind Ctrl + Left Arrow to move backward one word
bindkey "^[[1;5D" backward-word
###################################################
# History settings
HISTSIZE=1000
SAVEHIST=1000