From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16968 invoked by alias); 19 Mar 2014 22:34:18 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18638 Received: (qmail 6644 invoked from network); 19 Mar 2014 22:34:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140319153402.ZM4915@torch.brasslantern.com> Date: Wed, 19 Mar 2014 15:34:02 -0700 In-reply-to: Comments: In reply to David Banks "Colours leaking from RPROMPT" (Mar 19, 10:50am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Colours leaking from RPROMPT MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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.