Is there any way in the OS X Terminal to move the cursor word by word?
I know the combination Ctrl+A to jump to the beginning of the current command, and Ctrl+E to jump to the end.
But is there any way to jump word by word, like Alt+←/→ in Cocoa applications does?
开箱后,您可以使用相当离奇的Esc + F移动到下一个单词的开头,Esc + B移动到当前单词的开头。
On Mac OS X - the following keyboard shortcuts work by default. Note that you have to make Option key act like Meta in Terminal preferences (under keyboard tab)
I have observed that default emacs key-bindings for simple text navigation seem to work on bash shells. You can use
Here's how you can do it
By default, the Terminal has these shortcuts to move (left and right) word-by-word:
You can configure alt+← and → to generate those sequences for you:
⌥ ←
if it's there, or add it if it's not.