From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20652 invoked by alias); 7 Feb 2014 00:47:39 -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: 18410 Received: (qmail 19718 invoked from network); 7 Feb 2014 00:47:33 -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: <140206074428.ZM27501@torch.brasslantern.com> Date: Thu, 06 Feb 2014 07:44:28 -0800 In-reply-to: <20140206015034.GA4321@mbp.localdomain> Comments: In reply to luc "Re: completion function for system_profiler (OS X)" (Feb 6, 2:50am) References: <20140205120058.GA85309@mbp.localdomain> <20140206015034.GA4321@mbp.localdomain> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Mailinglists Subject: Re: completion function for system_profiler (OS X) MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Feb 6, 2:50am, luc wrote: } } I am now hardcoding the data types into the array as the call for } `system_profiler -listDataTypes` is taking a lot of time sometimes. I } think this list hardly ever changes (in new versions of OS X?). You could also establish a cache policy which updates only if the operating system has changed, and populate the cache the first time system_profiler is completed. -- Barton E. Schaefer