From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10148 invoked from network); 12 Sep 2000 06:15:51 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 12 Sep 2000 06:15:51 -0000 Received: (qmail 17638 invoked by alias); 12 Sep 2000 06:14:55 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3420 Received: (qmail 17631 invoked from network); 12 Sep 2000 06:14:53 -0000 From: "Bart Schaefer" Message-Id: <1000912061435.ZM5741@candle.brasslantern.com> Date: Tue, 12 Sep 2000 06:14:35 +0000 In-Reply-To: <1000912052009.ZM5715@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "Re: 3.1.9 completion problems: automounter" (Sep 12, 5:20am) References: <200009111436.KAA02215@soup.ads.apexinc.com> <1000912052009.ZM5715@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: "E. Jay Berkenbilt" , zsh-users@sunsite.auc.dk Subject: Re: 3.1.9 completion problems: automounter MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 12, 5:20am, Bart Schaefer wrote: } } Hmm. I've just been playing with zsh on a machine at work that has an } automounted directory, and I can't reproduce the behavior you described. [...] } with the trailing slash, the mount happens and I get completions. This } happens both with and without the new completion system loaded. I'm sorry, I was mistaken about having loaded new completion. With the new completion system *properly* loaded, I *can* get this to happen. So here's the answer to your question: zstyle -e ':completion:*' file-patterns '[[ -d $PREFIX:h/. ]]' This tests whether the prefix (or "/", if there's no prefix, but that's harmless) contains a "." directory, then ignores the result; so the only effect is to force the directory to be automounted. Since it does not set a value for $reply (see the "zstyle -e" doc), completion proceeds as if the style were not set at all. Note that if you actually *want* to set file-patterns for some other context, you'll have to add the test to those styles as well, or the side-effect will go away in those contexts. -- 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