Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: When RPROMPT != RPS1
- X-seq: zsh-workers 41477
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: linuxtechguy@xxxxxxxxx
- Subject: Re: When RPROMPT != RPS1
- Date: Mon, 31 Jul 2017 11:33:59 -0700
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BYl0GLmr7x4PNDsIanKCN3uX6KDYRjNWX1A33fVUIdQ=; b=nBKtcQ48Xke9hMA1xx9aBKPCTN+KfATifB6Fs7eC7UwaK3G8ddCNYcYIbMh1qe3MB1 1YbBa5GwVPAPfd+5VGKlxP/fopiysUc42o+UcDun2Gy3rk4QysGw1BQHRVZNbdJeEQoA rygGy/SOtjKiikZCKZw5WS0eYZx2J9JsdFgqfTuxEAwRMlFc7VDj1wq+mhIkFkniuPU7 Otf0lZJJD4kW1FnkZKiHMhDhqjnwOUX4eEdnOXH7LcyoeRzKHWsgBG1F0F9im+M4kw08 Oqi/Mkwlh7bW1svOcUxnm/fjTjulauiI0S99sHElYUWzhXUnyZAfVs/sd7j4eLUM1w0B oCWA==
- In-reply-to: <CA+rB6GJM-Cz_QeKAFYLXow-FDUzzCbR=tdewjh3WjptM+CGGsw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CA+rB6GJnFZDR6NQO1CwZx6d=QiD2=8nC3vKrNbm=am0s1SeZpA@mail.gmail.com> <CA+rB6GJmWTeRgQRr7OabGiENq=zWFOKHMGw6i43uuw82TrD_oQ@mail.gmail.com> <CGME20170621171640epcas3p3d782a0076de53dc91f1b78d3ec471af5@epcas3p3.samsung.com> <170621101645.ZM9838@torch.brasslantern.com> <20170622101735.4ebebd11@pwslap01u.europe.root.pri> <m237aqlb6q.fsf@Daniels-Air.fritz.box> <170623203737.ZM27250@torch.brasslantern.com> <m2y3sh4074.fsf@Daniels-Air.fritz.box> <170727195331.ZM18653@torch.brasslantern.com> <CA+rB6GJM-Cz_QeKAFYLXow-FDUzzCbR=tdewjh3WjptM+CGGsw@mail.gmail.com>
On Mon, Jul 31, 2017 at 9:24 AM, Jim <linux.tech.guy@xxxxxxxxx> wrote:
>
> Built 5.3.1-dev-1 with your changes. Upon testing, I found that the
> original
> issues of the right prompt is still there when switching between walters
> and either bart or adam2. The right prompt appears on the right side of
> second line of the prompt.
That's intentional. It's up to each theme to determine how much of
the preexisting state should be replaced; if the theme doesn't
explicitly do anything with RPS1, then it remains when switching.
To get the effect you are after, you should be doing three steps:
prompt walters
prompt restore
prompt adam2
(or whatever). "prompt default" or "prompt off" would also be
possible as the middle step.
> But unlike previous versions of zsh where
> unset RPROMPT
> was needed to remove the unwanted prompt, you now have to type
> unset RPS1
> ??
Yes, the intent of the change to "walters" was to make it consistent
in that you can always "unset RPS1" rather than having to use one
parameter name for some prompts and the other name for others. It
didn't otherwise affect anything
> BTW, was there any reason for changing walters' appearance? It
> now does underlining instead of the colors as in previous versions
> of zsh.
There has been no change to "prompt walters", it has always used %U/%u
in PS1 and color (default green) in RPS1. However, the interpretation
of %U is specific to the termcap/terminfo definition of the current
terminal, so it's possible that's affecting something you see.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author