Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How completions work, do they require fpath?
- X-seq: zsh-users 21182
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: How completions work, do they require fpath?
- Date: Tue, 26 Jan 2016 20:51:14 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=k7UwGgrlPH+cLwGMpXJGRPX0w5dvd5Juhr0tsVfotss=; b=xT6Kby+dsRDk853JfLRvT2wN8cWlH4HlIIOZ8CzkV40cVO+EC1u3Szz5tvh1pf9VI/ TXPUX3tE8s7mpetW8KeBcpzBDxe5Hs1iugXTwUWq+gii/k1cCb4OoUmb4Ps3saRmcl2F 4Z1PyCUulOxrYHjSQfv6RvfZd3l1X4NwCXbpVQHoXYbLGwip3NYkzu6f0cgAjRI+S4iR tg/ihtRopq2MhsO4njIiITiSmLux+1YHFy/OhYGvI7U1PZjKNIlZeGtUrt/+ghDqRNvN zp8NaUex5J3j/UX75wfKPY5tsrZVkqZiKxMPKJUmB4mtb/UwrJfXrek1xl/9ArE88l5U swjQ==
- In-reply-to: <CAKc7PVCMPay34XS9up_CP-iZ79xPt2sZw35ngPBZZGN=_SRX_Q@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCMPay34XS9up_CP-iZ79xPt2sZw35ngPBZZGN=_SRX_Q@mail.gmail.com>
I've found following line in compaudit command:
if [[ $#_i_files -lt 20 || $_compdir = */Base || -d $_compdir/Base ]]; then
So this suggests that if there is Base sub directory in $_compdir, it
will be used by completion. Tested this and that's true. Quite
contradict to manual which says:
"For incomplete installations, if compinit does not find enough
files eginning with an underscore (fewer than twenty) in the search
path, it will try to find more by adding the directory _compdir to
the search path."
Anyway, it seems that I will be able to add completions as follows: a)
create completions/Base/Core directory following the following lines
from compaudit:
if [[ -d $_compdir/Base/Core ]]; then
# Add all the Completion subdirectories (CVS-layout)
_i_addfiles=(${_compdir}/*/*(/^M))
b) mkdir plugin's directory in Base
c) simlink completion files (starting with "_") into that subdirectory
c) set _compdir and run compinit
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author