Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why can't I set PS1?
- X-seq: zsh-users 2420
- From: Wolfgang Hukriede <whukriede@xxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Why can't I set PS1?
- Date: Mon, 5 Jul 1999 20:47:44 +0200 (MET DST)
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
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