From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8578 invoked from network); 18 Sep 2002 22:54:33 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 18 Sep 2002 22:54:33 -0000 Received: (qmail 14029 invoked by alias); 18 Sep 2002 22:48:44 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5362 Received: (qmail 14018 invoked from network); 18 Sep 2002 22:48:43 -0000 Date: Wed, 18 Sep 2002 18:47:54 -0400 From: Clint Adams To: Paul Lew Cc: zsh-users@sunsite.auc.dk Subject: Re: Reduce forking overhead in precmd() Message-ID: <20020918224754.GC22538@dman.com> References: <15752.65212.28904.60591@paullew-ultra.cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15752.65212.28904.60591@paullew-ultra.cisco.com> User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) > cleartool catcs | grep time > /dev/null > if [[ $? == 0 ]]; then > RPROMPT="%S f %s %$RPROMPT" > fi You could do something like [[ -n ${${(M)${$(cleartool catcs)}:#*time*}} ]] && RPROMPT="%S f %s %$RPROMPT"