How to move the iTerm2 terminal cursor word by word

Posted by Matt Bryson on 14-Jun-2015 22:37:12
Find me on:

Out the box iTerm2 and oh-my-zsh make using the terminal a whole lot easier, but there is one thing that has always annoyed me - not being to move the cursor to the prev / next words whilst entering long commands, until now...

Turns out it's pretty simple to enable.

Open iTerm and go to preferences;

Screen Shot 2015-06-09 at 10.03.52

Go to keys;

Screen Shot 2015-06-09 at 10.14.19

Click the + button to add a new keyboard shortcut.
Enter the key command you want to use; something like ⌥←.

Then choose send escape sequence;

Screen Shot 2015-06-09 at 10.14.40

Enter b for back and f for forward.

Now you can jump around terminal commands like a pro :)


Topics: Terminal, oh-my-zsh, iTerm2

About the author

Matt Bryson is an experienced systems engineer with over 15 years Development and Systems Operations experience.

NEW - Free eBook

Transforming your eDetail process. Click below to download the eBook.

New Call-to-action

Subscribe to Email Updates

Recent Posts