Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Reduce forking overhead in precmd()
- X-seq: zsh-users 5362
- From: Clint Adams <clint@xxxxxxx>
- To: Paul Lew <paullew@xxxxxxxxx>
- Subject: Re: Reduce forking overhead in precmd()
- Date: Wed, 18 Sep 2002 18:47:54 -0400
- Cc: zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <15752.65212.28904.60591@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <15752.65212.28904.60591@xxxxxxxxxxxxxxxxxxxxxxx>
> 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"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author