From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5026 invoked from network); 30 Mar 2004 01:16:18 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 30 Mar 2004 01:16:18 -0000 Received: (qmail 5851 invoked by alias); 30 Mar 2004 01:16:00 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7299 Received: (qmail 5834 invoked from network); 30 Mar 2004 01:16:00 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 30 Mar 2004 01:16:00 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 30 Mar 2004 1:15:59 -0000 Received: (qmail 5849 invoked from network); 30 Mar 2004 01:15:59 -0000 Received: from main.gmane.org (80.91.224.249) by a.mx.sunsite.dk with SMTP; 30 Mar 2004 01:15:57 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B87r8-0007mU-00 for ; Tue, 30 Mar 2004 03:15:56 +0200 Received: from isi-dialin-129-215.isionline-dialin.de ([195.158.129.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Mar 2004 03:15:54 +0200 Received: from thorsten by isi-dialin-129-215.isionline-dialin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Mar 2004 03:15:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: Re: Completion for cd Date: Tue, 30 Mar 2004 03:15:47 +0200 Message-ID: References: <20040328104221.GA2642@eumel.yoo.net> <1h76677mo3oj$.dlg@thorstenkampe.de> <20040328203421.GA768@eumel.yoo.net> 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-215.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 * Thorsten Haude (2004-03-28 22:34 +0100) > * Thorsten Kampe wrote (2004-03-28 14:03): >>* Thorsten Haude (2004-03-28 12:42 +0100) >>> one of the last upgrades of Zsh in Debian Sarge changed the way >>> directory names for cd are completed. With the current set of >>> functions, user's home directories are completed, which is a nuisance. >>> >>> I think I have found the file to change: >>> /usr/share/zsh/4.1.1/functions/Completion/Zsh/_cd >>> >>> Now, there are some problems: >>> 1. I don't understand enough of the code to reliably remove user's >>> home directories from completion. I could fall back to an older >>> version of the file, but would loose completion of cdable vars. >>> >>> The code in question is probably this part: >>> [...] >>> >>> How to rip out home dir completion without affecting cdable vars? >> >>Just don't "rip out" and modify the completion code. zsh isn't bash - >>use the possibility to modify the way zsh completes. > > Well, that's what I wanted to do. In this case, I wanted to rip out > home completion since I don't need it. Sorry, I have no idea what you mean by "home dir completion". If you mean the completion of named directories I already told you that zsh doesn't do that unless you explicitly type a "~". >>Have a look at the users' guide for "tag-order"... > > Have done, but I couldn't make head or tails from it. What would I > have to do to remove home completion? zstyle ':completion:*:cd:*' tag-order !named-directories