Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Make Terminal.app key mappings work in bash' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make Terminal.app key mappings work in bash
Authored by: kwyjibo on Aug 06, '04 12:11:56PM
You can still move the cursor forward or backward one word at a time without these key bindings. If your bash is set to emacs mode (the default) you can use ESC-f and ESC-b which, admittedly, is a little more cumbersome than using the control left/right arrow combination. I actually prefer to use \C-f and \C-b as my forward/backward word commands, since these mirror my bindings in emacs. If you are a vi user, you can enable vi mode by adding set -o vi to your .bash_profile. Then you can use vi cursor motion commands instead.

[ Reply to This | # ]
Make Terminal.app key mappings work in bash
Authored by: MattHaffner on Aug 06, '04 12:19:21PM

Even easier, just turn on "Use option key as meta key" and then Opt-F and Opt-B work as Meta-F and Meta-B (and so on for every other key...). The default Emacs bindings for M-F and M-B are forward and backward word motion.



[ Reply to This | # ]
Make Terminal.app key mappings work in bash
Authored by: osxpounder on Aug 09, '04 05:27:57PM

Hmm, the Esc-f and Esc-b worked for me in iTerm, but when I told iTerm's prefs to treat the Option key as a meta-key, nothing changed, even after restarting iTerm.

---
--
osxpounder



[ Reply to This | # ]