From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14986 invoked from network); 28 Mar 2004 20:39:32 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 28 Mar 2004 20:39:32 -0000 Received: (qmail 23901 invoked by alias); 28 Mar 2004 20:39:18 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7282 Received: (qmail 23848 invoked from network); 28 Mar 2004 20:39:17 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 28 Mar 2004 20:39:17 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 28 Mar 2004 20:39:17 -0000 Received: (qmail 20972 invoked from network); 28 Mar 2004 20:39:17 -0000 Received: from natsmtp00.rzone.de (HELO natsmtp00.webmailer.de) (81.169.145.165) by a.mx.sunsite.dk with SMTP; 28 Mar 2004 20:39:14 -0000 Received: from eumel.yoo.local (pD9E09BE8.dip.t-dialin.net [217.224.155.232]) by post.webmailer.de (8.12.10/8.12.10) with ESMTP id i2SKdDvZ017930 for ; Sun, 28 Mar 2004 22:39:13 +0200 (MEST) Received: by eumel.yoo.local (Postfix, from userid 1000) id DCB6E4808A; Sun, 28 Mar 2004 22:34:21 +0200 (CEST) Date: Sun, 28 Mar 2004 22:34:21 +0200 From: Thorsten Haude To: zsh-users@sunsite.dk Subject: Re: Completion for cd Message-ID: <20040328203421.GA768@eumel.yoo.net> Mail-Followup-To: zsh-users@sunsite.dk References: <20040328104221.GA2642@eumel.yoo.net> <1h76677mo3oj$.dlg@thorstenkampe.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: <1h76677mo3oj$.dlg@thorstenkampe.de> X-Warning: Email may contain unsmilyfied humor and/or satire. Keywords: Hardcore, but no child sex at all! Organization: Central Services - We do the work, you do the pleasure. User-Agent: Mutt/1.5.5.1i cd.edit_threads cd.trash_folder X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.6 required=6.0 tests=RCVD_IN_NJABL,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.6 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Moin, * 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. >>=20 >> I think I have found the file to change: >> /usr/share/zsh/4.1.1/functions/Completion/Zsh/_cd >>=20 >> 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. >>=20 >> The code in question is probably this part: >> [...] >>=20 >> 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 -=20 >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. >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? Thorsten --=20 I fear that Digital Rights Management today is Political Rights Management tomorrow. That embedding these kinds of technological controls into the very architecture of computing has the capacity to become a form of political control in the not so distant future. - John Perry Barlow --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAZzbNW/x2JEBlodoRAtrFAJ9TeRd1PJuf7VJd9KewnwZWXAD2eACdEGi1 633K2hH3d7fWNLWTPhc9GTw= =ewLU -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--