Tips: resolution of moving between words in terminal (zsh)
When the default zsh shell, I am struggling to move words on shell mode.
$ this isCCC the test text.DDDDD
It does work on some environment (macOS iTerm2 config), but somehow doesn’t work on Ubuntu terminal or Ghostty.
Here is the solution. (ref link)
$ vim ~/.zshrc
.zshrc
bindkey "^[[1;3C" forward-word # Alt + Right
bindkey "^[[1;3D" backward-word # Alt + Left
Enjoy!