Skip forwards / backwards 1 word from the Bash CLI using iTerm2

You can Alt left arrow to go back 1 word in any modern text editor or browser.

But not in iTerm2 by default.

The trick is to Load Keys > Natural Text Editing.

i.e.

Go to iTerm Preferences > Profiles, select your profile, then the Keys tab. Click Load Preset… and choose Natural Text Editing.

https://apple.stackexchange.com/questions/136928/using-alt-cmd-right-left-arrow-in-iterm

Leave a Reply

Your email address will not be published. Required fields are marked *