From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16349 invoked from network); 5 Apr 2004 23:34:20 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 5 Apr 2004 23:34:20 -0000 Received: (qmail 5980 invoked by alias); 5 Apr 2004 23:33:44 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7329 Received: (qmail 5962 invoked from network); 5 Apr 2004 23:33:43 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 5 Apr 2004 23:33:43 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 5 Apr 2004 23:33:43 -0000 Received: (qmail 23309 invoked from network); 5 Apr 2004 23:33:42 -0000 Received: from main.gmane.org (80.91.224.249) by a.mx.sunsite.dk with SMTP; 5 Apr 2004 23:33:38 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BAdb0-0001q0-00 for ; Tue, 06 Apr 2004 01:33:38 +0200 Received: from isi-dialin-129-217.isionline-dialin.de ([195.158.129.217]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Apr 2004 01:33:38 +0200 Received: from thorsten by isi-dialin-129-217.isionline-dialin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Apr 2004 01:33:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: Re: .zshrc sanity check Date: Tue, 6 Apr 2004 01:33:35 +0200 Message-ID: References: <1gyr312onv6xj$.dlg@thorstenkampe.de> <17660.1081191572@trentino.logica.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: isi-dialin-129-217.isionline-dialin.de User-Agent: 40tude_Dialog/2.0.10.1de Sender: news X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 * Oliver Kiddle (2004-04-05 20:59 +0100) > Thorsten Kampe wrote: >> re-reading the User's guide I have made many changes to my .zshrc and > >> zstyle ':completion:*' completer _expand _complete _match _approximate _ignored >> zstyle ':completion:*:expand:*' glob true > > The _match completer is pretty much superfluous if you already use > _expand to expand any globs. Okay, I've put "_match" out of "matcher-list". >> zstyle ':completion:*:approximate:*' insert-unambiguous true > > This style is not doing anything. _approximate only looks up that style > after it has added the number of corrections to the context. I use: > zstyle ':completion::approximate*:*' insert-unambiguous true And another one for my .zshrc ;-) > You might want to think about using more specific contexts for quite a > few of the styles. It is worth thinking through all the style > components whenever you set a style. Yeah, probably. But my understanding of the whole "zstyle" stuff and syntax is not so deep (for a proof see "This style is not doing anything" above). > I prefer to avoid matching anything (with *) in the function component > with styles that affect completion behaviour. Why? >> zstyle ':completion:*:expand:*' subst-globs-only true > > You might want to rethink setting that (and your expand styles in > general since it looks like you've just set everything true). Yes, almost. Peter Stephenson's description of these options in the User' Guide is so persuading that I thought: "Sounds good and reasonable to me. Let's set this to 'true'.". > Other styles now do a better job with what I tried to do with > subst-globs-only. For instance? > Other than that, it rest comes down to personal preference. I found > myself thinking "yuk" but not "that's insane" on seeing some of your > option settings. A couple of options you may want to try setting are > c_bases and braceccl. Did that (although I don't know what "yuk" means). I've set most of these options two and a half years ago when I first got in contact with zsh and read the User's Guide. If reading the description of the option made me think "I don't have the slightest idea what that means", I optioned for the default. And every time I thought "Wow, looks like some extra functionality", I set the option. Shame on me that I had "shwordsplit" set until a few weeks ago ;-) Thorsten