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;
Go to keys;
+ button to add a new keyboard shortcut.
Enter the key command you want to use; something like
send escape sequence;
b for back and
f for forward.
Now you can jump around terminal commands like a pro :)