The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 12-30-2003
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline
Unix does a body good.
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
I have one I like for root and one for other users... that way you know by the prompt when you are root.

here is root PS... it should be on 2 lines like that in your .profile

PS1="`hostname`-$LOGNAME:\${PWD#*}
# "

for other users do this:

PS1="/\${PWD#*}_> "
will give what you wanted.
__________________
My brain is your brain