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

Re: PS1 and PS2



> 
>   Hello.
> 
>   My prompt strings $PS1 and $PS2 work as expected for non-root users
> but not for root.
> 
...
> # define bash prompts
> export PS1='\h:[*\u*] \$ '
> export PS2='\h:[*\u*] And? \$ '

Are youexporting these vars from a root shell?  By default there is
a .bash_profile script installed in the root directory, so if you are just
changing the PS1 value under /etc/pr



Reply to: