Thursday, July 17, 2025

iTerm2 one word to the right/left

Put this in ~/.zshrc or ~/.bashrc
# Custom iTerm2 Option+Arrow keybindings (placed at the very end)
bindkey "\e[1;3C" forward-word  # Option + Right Arrow
bindkey "\e[1;3D" backward-word # Option + Left Arrow