Add control arrow keys to zsh

This commit is contained in:
Joshua Yuen 2025-08-22 17:54:08 -04:00
parent 915bde542c
commit 537af1f5cc
Signed by: josh
GPG Key ID: 502720BC22ED411C
1 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,10 @@ in
# Tab to accept current selection # Tab to accept current selection
bind-key -M menuselect '^I' accept-and-infer-next-history bind-key -M menuselect '^I' accept-and-infer-next-history
# Control arrow keys
bindkey '^[[1;5C' forward-word
bindkey '^[[1;5D' backward-word
# Load fzf keybindings # Load fzf keybindings
if [ -n "''${commands[fzf-share]}" ]; then if [ -n "''${commands[fzf-share]}" ]; then
source "$(fzf-share)/key-bindings.zsh"; source "$(fzf-share)/key-bindings.zsh";