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

Re: Why can't I set PS1?



Yes, it was exactly this. They (Suse GmbH) managed to define in
/etc/profile (which is sourced by zshrc):

        precmd ()
        {
            if test "$UID" = 0; then
                PS1="%m:`pwd -r` # "
            else
                PS1="%n@%m:`pwd -r` > "
            fi
        }

I sent them a bug-report.

Many thanks, fabulous!

Wolfgang.

Peter Stephenson wrote:
> It may be the same problem someone else had a couple of weeks ago.  On some
> system, the function precmd is set to restore the prompt before every
> single command, which is lunacy.  You can probably just `unfunction precmd'
> and set your own prompt, if that's the problem.



Messages sorted by: Reverse Date, Date, Thread, Author