From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7924 invoked by alias); 26 Jan 2016 19:51:37 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21182 Received: (qmail 11358 invoked from network); 26 Jan 2016 19:51:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=k7UwGgrlPH+cLwGMpXJGRPX0w5dvd5Juhr0tsVfotss=; b=I5YGmaIncA3LzVhrUXMlwIRRpIU42Tz7JbE10UECslsYgrCeHyVHh9EzR4tMO8wxmZ r+ceqHpk/oGJ1jyKn++mSjm8WSpb8/p/1tfTXKYN9xPNbqyMT6ZGqfDnTTyANaZFf+eC DorXraq7ZRL7pUekg7CHmpmjdoTQvhZFVoSK/idavpgBmreL1BVAKig3PDohFVs215LV xEeMPodSFlpE/6wscpc59R+NrF/P0EE7bQ7UK8bINPBxwDHco4eBCfgNvS//2elouXPs RIUx3p5Bstae6doMDe38uOxwMPVPICN91iIV62jYpMCG/78hFZkpI7K00stpTW2NmsEj pjQg== X-Gm-Message-State: AG10YOSz4uTrNZS5HMA3v/bDniEzWnkv/bu+6zcIRU3Jbs8ahs7b55TIE4JqjBQgV2se2IxSmq1Ej10kiajAsQ== X-Received: by 10.25.151.9 with SMTP id z9mr7924982lfd.72.1453837893769; Tue, 26 Jan 2016 11:51:33 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Sebastian Gniazdowski Date: Tue, 26 Jan 2016 20:51:14 +0100 Message-ID: Subject: Re: How completions work, do they require fpath? To: Zsh Users Content-Type: text/plain; charset=UTF-8 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