Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PS1 corrupted through "su"



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