I’m a heavy keyboard user, so being able to navigate quickly through the command line is mandatory.
Leopard’s Terminal.app lacks the most useful keyboard bindings, like word boundaries moves, word deletion, even the Home and End keys don’t move your cursor to the beginning and end of the command line.
So, after experimenting for a while, I found the optimum keyboard mapping for my MacBook Pro. To see how it feels, open your Terminal.app. Then go to Preferences->Keyboard. Now just add the following maps. Note that the preference dialog will replace any existent key map.
| Key | Action | Key Stroke | Result |
| control cursor left | \033b | Esc+b | Move one word backwards |
| control cursor right | \033f | Esc+f | Move one word forward |
| control forward delete | \027 | Ctrl+w | Delete word |
| end | \005 | Ctrl+e | Move to the end of the line |
| home | \001 | Ctrl+a | Move to the beginning of the line |
| option cursor left | \033b | Esc+b | Move one word backwards |
| option cursor right | \033f | Esc+f | Move one word forwards |
| page down | scroll to next page in buffer | ||
| page up | scroll to previous page in buffer | ||







