Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PS1 corrupted through "su"
- X-seq: zsh-users 2822
- From: Steve Reid <sreid@xxxxxxxxxxxxxx>
- To: John Galbraith <john@xxxxxxxxxxxxxxx>
- Subject: Re: PS1 corrupted through "su"
- Date: Mon, 3 Jan 2000 10:10:55 -0800
- Cc: zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <14448.55754.322294.62194@xxxxxxxxxxxxxxx>; from John Galbraith on Mon, Jan 03, 2000 at 10:25:56AM -0700
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <14448.55754.322294.62194@xxxxxxxxxxxxxxx>
On Mon, Jan 03, 2000 at 10:25:56AM -0700, John Galbraith wrote:
> export PS1="%(?.${yellow}.${red})%~%(!.${red}#.${cyan}%%)${normal} "
> This works great, until I su root.
[snip]
> If I then start a new shell as root (by typing "zsh"), things work as
> expected.
Root's shell being set to something other than zsh would cause the
behavior you're seeing.
You've probably checked that already, but sometimes the obvious things
are the easiest to forget.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author