Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion for cd
- X-seq: zsh-users 7316
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Completion for cd
- Date: Fri, 2 Apr 2004 08:11:55 -0800
- In-reply-to: <20040402065247.GB862@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040328104221.GA2642@xxxxxxxxxxxxx> <1h76677mo3oj$.dlg@xxxxxxxxxxxxxxxx> <20040328203421.GA768@xxxxxxxxxxxxx> <ife9d1balr6h$.dlg@xxxxxxxxxxxxxxxx> <20040331201900.GI1065@xxxxxxxxxxxxx> <040401100439.ZM13083@xxxxxxxxxxxxxxxxxxxxxxx> <20040401204424.GI994@xxxxxxxxxxxxx> <1040402043837.ZM13655@xxxxxxxxxxxxxxxxxxxxxxx> <20040402065247.GB862@xxxxxxxxxxxxx>
On Apr 2, 8:52am, Thorsten Haude wrote:
>
> yooden@eumel % cd n
> tags in context :completion::complete:cd::
> local-directories named-directories (_alternative _cd)
> users named-directories directory-stack (_tilde _alternative _cd)
> users (_users _tilde _alternative _cd)
>
> Well, there are users. How to remove them?
zstyle ':completion::complete:cd::' tag-order '! users' -
Should do it. If you want it to complete users if and only if it can't
complete anything else, drop the trailing "-". (Note that "users" won't
be removed from the <C-x h> output, but you should find that it doesn't
complete them any more.)
You might want to use ':completion:*:complete:cd:*' in case cd is used in
some other context, but that's "less specific" than the version without
the "*" for purposes of compsys selecting the most specific style.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author