NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: New prob with PS1
On Jun 24 13:41:29, hans%stare.cz@localhost wrote:
> On Jun 19 12:23:51, tgruhn2%gmail.com@localhost wrote:
> > I got what I want.
> >
> > PS1="${B_WHITE}${BLD}${F_BLACK}`hostname -s`${F_MAG}::${GREEN}`id
> > -un`#${NOR}${NOR} "
> >
> > But when I su to root, I no longer have
> > dark and heavy characters. What am I doing?
>
> PS1 is an environment variable.
> man su and see the bits about environment.
> (do you "su" or "su -" ?)
>
> After su (to any other user) you don't even necessarily
> have the same SHELL, so does it even recognize PS1?
>
> env(1) before and after and see the differences.
>
> Jan
>
>
Home |
Main Index |
Thread Index |
Old Index