Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Colours leaking from RPROMPT
- X-seq: zsh-users 18638
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Colours leaking from RPROMPT
- Date: Wed, 19 Mar 2014 15:34:02 -0700
- In-reply-to: <CAOBNZ7Z+GGd_JHN5aE=JB0cBFhjsVoVEr7x8+Q01K-_=8VgJAQ@mail.gmail.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>
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.
However, you shouldn't need $reset_color at all ... you should use:
RPROMPT="%F{cyan}${timer_show}s %f"
You might also want to look at the zsh/datetime module and $EPOCHREALTIME
instead of doing all that "date" and "bc" stuff.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author