zsh-workers
 help / color / mirror / code / Atom feed
* When RPROMPT != RPS1
@ 2017-06-20 17:08 Jim
  2017-06-20 18:22 ` Jim
  0 siblings, 1 reply; 10+ messages in thread
From: Jim @ 2017-06-20 17:08 UTC (permalink / raw)
  To: zsh-workers


[-- Attachment #1.1: Type: text/plain, Size: 1116 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1542 bytes --]

[-- Attachment #2: right_prompt_test --]
[-- Type: application/octet-stream, Size: 766 bytes --]

#!/bin/zsh

print "Current state of RPROMPT and RPS1"
print -l "\tRPROMPT:  $RPROMPT" "\tRPS1:  $RPS1"
print "Set RPROMPT to RPROMPT" ; RPROMPT="RPROMPT"
print -l "\tRPROMPT:  $RPROMPT" "\tRPS1:  $RPS1"
print "Set RPS1 to RPS1" ; RPS1="RPS1"
print -l "\tRPROMPT:  $RPROMPT" "\tRPS1:  $RPS1"
print "Unset RPRMOPT" ; unset RPROMPT
print -l "\tRPROMPT:  $RPROMPT" "\tRPS1:  $RPS1"
print "Unset RPS1" ; unset RPS1
print -l "\tRPROMPT:  $RPROMPT" "\tRPS1:  $RPS1"
print "Set RPROMPT to RPROMPT" ; RPROMPT="RPROMPT"
print "Set RPS1 to RPS1" ; RPS1="RPS1"
print -l "\tRPROMPT:  $RPROMPT" "\tRPS1:  $RPS1"
print "Unset RPS1" ; unset RPS1
print -l "\tRPROMPT:  $RPROMPT" "\tRPS1:  $RPS1"
print "Unset RPRMOPT" ; unset RPROMPT
print -l "\tRPROMPT:  $RPROMPT" "\tRPS1:  $RPS1"

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-07-31 18:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-20 17:08 When RPROMPT != RPS1 Jim
2017-06-20 18:22 ` Jim
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

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).