[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting Prompt



> As root my prompt has the working directory listed.  Where is the file
> for the root prompt?

   This can be set in ~/.bashrc and/or? ~/.bash_profile.  I just checked, and
I have mine set in both (for what reason escapes me).  I'm using:

   PS1="\t   \d\n\u@\H\n[\w] \\$ "

and then exporting it, which displays a prompt as $ for regular users and #
for root.

-- 
 Regards,       | <redwards@golgotha.net>   | Upgrade your old legacy
 .              | <http://www.golgotha.net> | WindowsNT machines to
 Randy          |                           | Linux http://www.linux.org


Reply to: