Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Bash:Move forward and backward through the prompt?

Bash:Move forward and backward through the prompt?
Thread Tools
DevNine
Dedicated MacNNer
Join Date: Mar 2002
Status: Offline
Reply With Quote
Jun 10, 2006, 03:48 PM
 
Wondering if there is a way to move backwards and foward between words not just characters in the terminal ?
http://winlab.csbnet.se Visit the Mac Demo Scene.
     
Mithras
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Jun 10, 2006, 06:02 PM
 
If your inputrc is set for Emacs mode (which I think might be the default?), then escape-b and escape-f do so.
If you are using Terminal.app and have checked the box 'Use option key as meta key' under the 'Keyboard' section of the Inspector, then option-b and option-f will work.

In general:
http://www.math.uh.edu/~bgb/emacs_keys.html
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jun 10, 2006, 08:13 PM
 
Hey, I never knew it did that. Neat. (Yes, it works by default.)
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Juggle5
Junior Member
Join Date: Nov 2001
Location: Seattle
Status: Offline
Reply With Quote
Jun 15, 2006, 02:37 AM
 
You can also do ctrl-A and ctrl-E to go to the beginning/end of the line. The nice thing about these emacs commands is they work in text fields of any cocoa app!
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 12:02 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,