This is the slides of the technical presentation I gave at my toastmasters club.
Mac OS X doesn’t support readline’s alt-b and alt-f. It has esc-b and esc-f instead. But, you cannot hold esc to keep moving cursor, instead, you have to type esc-b or esc-f every time to move one word. This is very annoying to me until I found a solution with iTerm2.
Hers’s how to make iTerm2 to support alt-b and alt-f:
- Command-; to bring up the Preference menu
- Select Keys tab
- Click + button on the bottom of the right section (see the red cycle on the screen shot)
- Add shortcut key (see the red rectangle on the screen shot) for alt-f and alt-b