(Answer) (Category) SCO UnixWare 7/OpenUNIX 8/OpenServer 6 FAQ : (Category) User Related Information :
How do I display my current working directory at a bash prompt?
You can have bash display your hostname and working directory at the prompt in this form:

         yoda:/var/tmp>$
by changing the PS1 line or creating in your .profile to read:
PS1='\h:$PWD>\$'
The defninition must be in single quotes, or it won't update the prompt when you change directories. If you like to see your hostname capitalized like I do, then hardcode it into your .profile like this:
PS1='Yoda:$PWD>\$'


<mschalit@pacbell.net>
gerberb@zenez.com

[Append to This Answer]
Previous: (Answer) How do I display my current working directory at a ksh prompt?
Next: (Answer) How do I type accented charaters in vi, Messanger, or Kedit?
This document is: http://www.zenez.com/cgi-bin/ou8faq/faq?file=255
[Search] [Appearance]
This is a Faq-O-Matic 2.721.