Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Reduce forking overhead in precmd()



>         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