Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Colours leaking from RPROMPT
- X-seq: zsh-users 18645
- From: David Banks <amoebae@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Colours leaking from RPROMPT
- Date: Thu, 20 Mar 2014 14:53:14 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=aBBkUPWLifEdS81WUlAspS0TptQM2tplGiuOLbIfmLk=; b=r6EJk7Oc6sbeSW4ivY9ECnP6uFxMgtpS9BdL/SL+2Hw5UrweYVWTUFQAIVklI1Bh7y Zw1c5WdtpxuCrdQzL3mUqaya09AzuRrwzLjSZBCELQiMlydHj53rpNgrh5Dfqk4Zn1bF KEOk5pq+4FoRZqO7Q+7eymxEafzwVczhcSoFU46HRKm6lYza7gipEipUev0rtHLtERN1 EPbnnPTM1PWgL1pjZ06Fte3kpHt1zt5F9QNHPyD4XUXUnxBwzswIb64c9n3LobgiFzl9 5u5f+yW/i/A1XL1wRu7NIfea9CGE37y3zu8QrY3qM5WzvwMf6ioGBkOofCCKcb5Gqu1N xE+g==
- In-reply-to: <140319153402.ZM4915@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAOBNZ7Z+GGd_JHN5aE=JB0cBFhjsVoVEr7x8+Q01K-_=8VgJAQ@mail.gmail.com> <140319153402.ZM4915@torch.brasslantern.com>
On 19 March 2014 22:34, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Mar 19, 10:50am, David Banks wrote:
> }
> } RPROMPT="%F{cyan}${timer_show}s %{$reset_color%}"
>
> Are you sure $reset_color is defined? You need to autoload and run
> the "colors" function to initialize $reset_color.
printf "%s" "$reset_color" | wc -c
=> 5
> However, you shouldn't need $reset_color at all ... you should use:
>
> RPROMPT="%F{cyan}${timer_show}s %f"
That fixed it, thanks!
> You might also want to look at the zsh/datetime module and $EPOCHREALTIME
> instead of doing all that "date" and "bc" stuff.
Great, I will check these out.
Cheers!
Dave
Messages sorted by:
Reverse Date,
Date,
Thread,
Author