From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25629 invoked by alias); 20 Jun 2017 18:22:15 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41336 Received: (qmail 3623 invoked from network); 20 Jun 2017 18:22:15 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr0-f180.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.128.180):SA:0(0.0/5.0):. Processed in 0.802152 secs); 20 Jun 2017 18:22:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLYTO, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: linux.tech.guy@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.128.180 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to; bh=x4N3o0GywE7OnbxxW2/f3IIBfXryQD6XW1sLvVHpEJ8=; b=PFo96yDmXeO1iVu8PZA1uQIZ+D1q3793u1SrfWx71Nrwr21D7wxjsl5HYnbiLJ5uZJ ClVr0cs6jFSvrpgAEWtZSt+4paaJ9RDS/C09ejuMHeUIUFMQQgrYe0tbMcY1LAJwg716 NAqHWo82ozk36DCdGOIngWoczj+onOxJ657XnsyHlAMn39OCPm0tXVkK/owKM2TiJx3N zRF8sSR1rqcJ0HUHtI1/Nk2WOHhHCDp03ClDMFob3MC+vldoj6wqHLY50QkNR22bG+h2 ZSKFxBIzd0vGwS7AfGInCmZXLOcIqF7NKcnmRwTb/bn5DzPi5/9RkuzDQBkckV6vX8Kc f3sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to; bh=x4N3o0GywE7OnbxxW2/f3IIBfXryQD6XW1sLvVHpEJ8=; b=eGMr4N72LFh5frzTbjar3eVVgtKV3bqMvfZAngLzQrg6By2KPolrrpB6m8epaaZ/tm qbf3s2wdzK7RbbsFYIDK9PWZ0Ff/87+tvtG4aJN9NdRSYlVdsTgYlflOCDN/WobBXdaI 7c/GZDO5aOxi8Ug1PpoN4Igle1Uc6hUQGpakWVj7x5fFy6Xcwz3+qdJVhGaF90/aTfLT HsPZ/tpcNk1vi8RT3IAXQD0nyObveMbWQcRtTX3jgT6Jn8lfgqSafEuKpH8adrlYWg3D 1xDBJxSNRma6kclYdpZOMTaGmwIj/Ac5D4mmiCcu0eiY8bKQJUNBQKu82oEtNg80EgXb QTFg== X-Gm-Message-State: AKS2vOyBr9gztI59xFbvKVUu7FCW45CwsqWBI+9YwrYk6M8KbQCkAQnd o2PbsvK0ktia/eF282FIoOrIFd6GkxCL X-Received: by 10.80.167.228 with SMTP id i91mr22016485edc.145.1497982925603; Tue, 20 Jun 2017 11:22:05 -0700 (PDT) MIME-Version: 1.0 Reply-To: linuxtechguy@gmail.com In-Reply-To: References: From: Jim Date: Tue, 20 Jun 2017 13:22:05 -0500 Message-ID: Subject: Re: When RPROMPT != RPS1 To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="94eb2c19594c2907c40552685449" --94eb2c19594c2907c40552685449 Content-Type: text/plain; charset="UTF-8" On Tue, Jun 20, 2017 at 12:08 PM, Jim 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 --94eb2c19594c2907c40552685449--