|
|
Make Terminal.app key mappings work in bash
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.
Make Terminal.app key mappings work in bash
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.
Make Terminal.app key mappings work in bash
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. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|