[ale] root's shell prompt

John Wells jb at sourceillustrated.com
Fri May 9 18:43:10 EDT 2003


All,

Adding this code to root's .bashrc did the trick.  Thanks for all the tips!

John

David S. Jackson said:
> On Fri, May 09, 2003 at 03:58:12PM -0400 John Wells
> <jb at sourceillustrated.com> wrote:
>> On most of my machines, when I su to root, the $PS1 prompt changes.
>> This is a nice feature, because I always know when I'm root or not by
>> looking at the prompt.
>
> Lots of different ways to do this, but you might try something
> like
>
> PS1="[\u@\h \w]"
> case `id -u` in
>   0) PS1="${PS1}# ";;
>   *) PS1="${PS1}$ ";;
> esac



_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list