(Answer) (Category) SCO UnixWare 7/OpenUNIX 8/OpenServer 6 FAQ : (Category) User Related Information :
How do I display my current working directory at a ksh prompt?
People like to see their hostname and working directory in their prompt, like:

         Yoda:/var/tmp>$
This can be easily done in ksh by editing your .profile. Change the PS1 line or create it to read:
PS1='Yoda:$PWD\>\$'
but use your own hostname, rather than Yoda. Be sure to surround the PS1 definition in single quotes, or it won't update when you change directories.


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

[Append to This Answer]
Previous: (Answer) How do I copy and paste in the KDE from an eterm to another app?
Next: (Answer) How do I display my current working directory at a bash prompt?
This document is: http://www.zenez.com/cgi-bin/ou8faq/faq?file=254
[Search] [Appearance]
This is a Faq-O-Matic 2.721.