Last active
February 4, 2023 19:10
-
-
Save knugie/fc9964695951b4c13ed3 to your computer and use it in GitHub Desktop.
# Use alt+arrow to move cursor by word# Mac OS X El Capitan # iTerm2 # zsh # ~/.zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Skip forward/back a word with opt-arrow | |
# https://gist.github.com/knugie/fc9964695951b4c13ed3 | |
bindkey -e | |
bindkey '\e\e[C' forward-word | |
bindkey '\e\e[D' backward-word |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
originally from http://stackoverflow.com/questions/6205157/iterm2-how-to-get-jump-to-beginning-end-of-line-in-bash-shell