zsh-users
 help / color / mirror / code / Atom feed
From: Thorsten Haude <zsh@thorstenhau.de>
To: zsh-users@sunsite.dk
Subject: Re: Completion for cd
Date: Sun, 28 Mar 2004 22:34:21 +0200	[thread overview]
Message-ID: <20040328203421.GA768@eumel.yoo.net> (raw)
In-Reply-To: <1h76677mo3oj$.dlg@thorstenkampe.de>

[-- Attachment #1: Type: text/plain, Size: 1514 bytes --]

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.
>> 
>> 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.


>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
-- 
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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-03-28 20:39 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-28 10:42 Thorsten Haude
2004-03-28 12:03 ` Thorsten Kampe
2004-03-28 20:34   ` Thorsten Haude [this message]
2004-03-30  1:15     ` Thorsten Kampe
2004-03-31 20:19       ` Thorsten Haude
2004-04-01 18:04         ` Bart Schaefer
2004-04-01 20:44           ` Thorsten Haude
2004-04-02  4:38             ` Bart Schaefer
2004-04-02  6:52               ` Thorsten Haude
2004-04-02 16:11                 ` Bart Schaefer
2004-04-04 14:43                   ` Thorsten Haude
2004-04-04 15:14                     ` Clint Adams
2004-04-04 15:26                       ` Thorsten Haude
2004-04-04 16:39                         ` Clint Adams
2004-04-05  0:04                           ` Bart Schaefer
2004-04-05  3:50                             ` Clint Adams
2004-03-28 19:56 ` Bart Schaefer
2004-03-31 20:22   ` Thorsten Haude
2004-04-01 18:24     ` Bart Schaefer
2004-04-01 20:52       ` Thorsten Haude
2017-03-14 17:38 Jesper Nygårds
2017-03-14 19:07 ` Bart Schaefer
2017-03-14 21:50   ` Jesper Nygårds
2017-03-15  3:56     ` Bart Schaefer
2017-03-15  7:22       ` Jesper Nygårds
2017-03-15 17:00         ` Bart Schaefer
2017-03-15 20:33           ` Jesper Nygårds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040328203421.GA768@eumel.yoo.net \
    --to=zsh@thorstenhau.de \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).