Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ever-expanding ZLS_COLORS
- X-seq: zsh-users 3172
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Matthew Lovell <lovell@xxxxxxxxx>, Zsh Users List <zsh-users@xxxxxxxxxxxxxx>
- Subject: Re: ever-expanding ZLS_COLORS
- Date: Fri, 16 Jun 2000 16:39:33 +0000
- In-reply-to: <14666.19076.319407.545919@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <14666.19076.319407.545919@xxxxxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author