From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7821 invoked from network); 16 Jun 2000 16:40:07 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Jun 2000 16:40:07 -0000 Received: (qmail 28303 invoked by alias); 16 Jun 2000 16:39:49 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3172 Received: (qmail 28296 invoked from network); 16 Jun 2000 16:39:48 -0000 From: "Bart Schaefer" Message-Id: <1000616163933.ZM4415@candle.brasslantern.com> Date: Fri, 16 Jun 2000 16:39:33 +0000 In-Reply-To: <14666.19076.319407.545919@hatchet.fc.hp.com> Comments: In reply to Matthew Lovell "ever-expanding ZLS_COLORS" (Jun 16, 9:40am) References: <14666.19076.319407.545919@hatchet.fc.hp.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Matthew Lovell , Zsh Users List Subject: Re: ever-expanding ZLS_COLORS MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 16, 9:40am, Matthew Lovell wrote: } Subject: ever-expanding ZLS_COLORS } } Now, everytime I attempt a completion which uses zsh-options, it seems } ZLS_COLORS just continues to grow Yes, I was noticing this myself. It's happening because some code at the top of the _setup function tries to merge your list-colors style with the existing global value of $ZLS_COLORS, but then the old value of $ZLS_COLORS doesn't get automatically restored when completion is done (the code to do the restore in _main_complete is conditional upon $compstate[old_list]). The best workaround for the time being is to assign to ZLS_COLORS in your precmd function. If you don't already have a precmd, it'd look like this: function precmd() { ZLS_COLORS='di=33' } Otherwise just add that assignment to whatever you already have in precmd. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net