View Single Post
Old 16th July 2013
Majorix Majorix is offline
Port Guard
Join Date: Apr 2012
Posts: 13

Thanks for the replies guys.

I didn't know it was related to the PS1 variable, but once I learned that, it was easy to add this line to my .profile
export PS1="\u@\h:\w\$ "
It does what I need, but with a nasty exception: if I su from a user terminal, it won't load root's .profile for some reason and as such the prompt is just #. If I source .profile the prompt changes to the proper one. What to do?
Reply With Quote