zsh-workers
 help / color / mirror / code / Atom feed
From: Jim <linux.tech.guy@gmail.com>
To: zsh-workers@zsh.org
Subject: Re: When RPROMPT != RPS1
Date: Tue, 20 Jun 2017 13:22:05 -0500	[thread overview]
Message-ID: <CA+rB6GJmWTeRgQRr7OabGiENq=zWFOKHMGw6i43uuw82TrD_oQ@mail.gmail.com> (raw)
In-Reply-To: <CA+rB6GJnFZDR6NQO1CwZx6d=QiD2=8nC3vKrNbm=am0s1SeZpA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1898 bytes --]

On Tue, Jun 20, 2017 at 12:08 PM, Jim <linux.tech.guy@gmail.com> wrote:

> zsh 5.3.1 (x86_64-pc-linux-gnu)
>
> When switching between prompt theme walters and some
> other themes I noticed that the right prompt remained. On
> checking I found walters was the only theme that used
> RPROMPT to set the right prompt. The only other theme
> to set the right prompt is bart, but it used RPS1.
>
> After switching from walters to say adam, I unset "RPS1",
> but the right prompt remained.  I then typed
> "unset RPROMPT" and the right prompt was no longer there.
>
> The output of a script I wrote doesn't match what I though it
> should, but then again it was just strange.
>
> Current state of RPROMPT and RPS1
>     RPROMPT:
>     RPS1:
> Set RPROMPT to RPROMPT
>     RPROMPT:  RPROMPT
>     RPS1:
> Set RPS1 to RPS1
>     RPROMPT:  RPS1
>     RPS1:  RPS1
> Unset RPRMOPT
>     RPROMPT:
>     RPS1:
> Unset RPS1
>     RPROMPT:
>     RPS1:
> Set RPROMPT to RPROMPT
> Set RPS1 to RPS1
>     RPROMPT:  RPS1
>     RPS1:  RPS1
> Unset RPS1
>     RPROMPT:
>     RPS1:
> Unset RPRMOPT
>     RPROMPT:
>     RPS1:
>
> Strange!  The results here contradict what I was seeing
> with the right prompt and unset RPS1. I'm also attaching
> the script.
>
> Thanks for zsh and your help.
>
> Jim
>


I should have checked earlier. I'm seeing the same thing with
RPS2 and RPROMPT2.

Current state of RPROMPT2 and RPS2
    RPROMPT2:
    RPS2:
Set RPROMPT2 to RPROMPT2
    RPROMPT2:  RPROMPT2
    RPS2:
Set RPS2 to RPS2
    RPROMPT2:  RPS2
    RPS2:  RPS2
Unset RPRMOPT2
    RPROMPT2:
    RPS2:
Unset RPS2
    RPROMPT2:
    RPS2:
Set RPROMPT2 to RPROMPT2
Set RPS2 to RPS2
    RPROMPT2:  RPS2
    RPS2:  RPS2
Unset RPS2
    RPROMPT2:
    RPS2:
Unset RPRMOPT2
    RPROMPT2:
    RPS2:

In addition the promptinit function doesn't set RPS2:

    local +h PS1=$PS1 PS2=$PS2 PS3=$PS3 PS4=$PS4 RPS1=$RPS1

Again, thanks,

Jim

  reply	other threads:[~2017-06-20 18:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-20 17:08 Jim
2017-06-20 18:22 ` Jim [this message]
2017-06-21 17:16   ` Bart Schaefer
2017-06-22  9:17     ` Peter Stephenson
2017-06-23 20:07       ` Daniel Tameling
2017-06-24  3:37         ` Bart Schaefer
2017-06-24 20:09           ` Daniel Tameling
2017-07-28  2:53             ` Bart Schaefer
2017-07-31 16:24               ` Jim
2017-07-31 18:33                 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+rB6GJmWTeRgQRr7OabGiENq=zWFOKHMGw6i43uuw82TrD_oQ@mail.gmail.com' \
    --to=linux.tech.guy@gmail.com \
    --cc=linuxtechguy@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).