From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3944 invoked from network); 23 Jul 2006 13:53:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Jul 2006 13:53:58 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 69124 invoked from network); 23 Jul 2006 13:53:45 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jul 2006 13:53:45 -0000 Received: (qmail 4281 invoked by alias); 23 Jul 2006 13:53:38 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10539 Received: (qmail 4269 invoked from network); 23 Jul 2006 13:53:37 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Jul 2006 13:53:37 -0000 Received: (qmail 68028 invoked from network); 23 Jul 2006 13:53:37 -0000 Received: from vinc17.net8.nerim.net (HELO prunille.vinc17.org) (62.212.121.106) by a.mx.sunsite.dk with SMTP; 23 Jul 2006 13:53:35 -0000 Received: by prunille.vinc17.org (Postfix, from userid 501) id 8DEE0A9E1FD; Sun, 23 Jul 2006 15:53:33 +0200 (CEST) Date: Sun, 23 Jul 2006 15:53:32 +0200 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Command completion: avoiding completion on directories Message-ID: <20060723135332.GJ16265@prunille.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.12-vl-r13195 (2006-07-20) When I'm starting to type a command and hit [Tab], zsh tries to complete on directories in cdpath too. I thought that the following would work: zstyle ':completion:*:complete:-command-:*' tag-order 'commands builtins functions aliases suffix-aliases reserved-words jobs parameters' '*' but zsh still tries to complete on directories when a command exists, and I still get after typing the beginning of a command, then ^Xh: tags in context :completion::complete:-command-:: commands executables builtins functions aliases suffix-aliases reserved-words jobs parameters (_alternative _command_names _autocd) jobs (_jobs _alternative _command_names _autocd) parameters (_parameters _alternative _command_names _autocd) path-directories named-directories (_alternative _cd _autocd) users named-directories directory-stack (_tilde _alternative _cd _autocd) users (_users _tilde _alternative _cd _autocd) Why doesn't this work? What should I do? -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA