From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10517 invoked by alias); 13 Sep 2015 01:11:29 -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: 20549 Received: (qmail 718 invoked from network); 13 Sep 2015 01:11:07 -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 autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=T/C1EZ6Q c=1 sm=1 tr=0 a=jE+ovs97kTJM1dD6JNRapQ==:117 a=jE+ovs97kTJM1dD6JNRapQ==:17 a=N659UExz7-8A:10 a=oDc1agoesJnMwNLq3coA:9 a=pILNOxqGKmIA:10 Message-id: <55F4C61E.50703@eastlink.ca> Date: Sat, 12 Sep 2015 17:41:02 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: Announce of Zsh Navigation Tools References: <55F465E6.1040405@eastlink.ca> <2125131442086868@web14o.yandex.ru> <55F4930A.40608@eastlink.ca> <150912151040.ZM12254@torch.brasslantern.com> <55F4AF59.70606@eastlink.ca> <150912164339.ZM26555@torch.brasslantern.com> In-reply-to: <150912164339.ZM26555@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 09/12/2015 04:43 PM, Bart Schaefer wrote: > On Sep 12, 4:03pm, Ray Andrews wrote: > } > } immediately makes me want do something like this: > } > } for aa in /aWorking/Zsh/Source/*; do autoload $aa; done > } > } ... remembering of course that things need to be rewritten to look like > } scripts. > > As long as there is only one function per file, you don't need to rewrite > them, just use > > ...; do autoload -k $aa; done Shucks, I can do it in a for loop then? Thought that would be too easy. Nuts, that's down right friendly. zsh seems less sadistic all the time ;-) > > } BTW, looking at $fpath, it sure is laborious. Do we, could we have some > } sort of automatic subdirectory inclusion? > > I'm not sure what you mean by this, that is, are you trying to build up > the value of $fpath or are you trying to find all the files in $fpath > to autoload them? > I mean just ... /usr/local/share/zsh/site-functions /usr/share/zsh/vendor-functions /usr/share/zsh/vendor-completions /usr/share/zsh/functions/Calendar /usr/share/zsh/functions/Chpwd /usr/share/zsh/functions/Completion /usr/share/zsh/functions/Completion/AIX /usr/share/zsh/functions/Completion/BSD /usr/share/zsh/functions/Completion/Base /usr/share/zsh/functions/Completion/Cygwin /usr/share/zsh/functions/Completion/Darwin /usr/share/zsh/functions/Completion/Debian /usr/share/zsh/functions/Completion/Linux /usr/share/zsh/functions/Completion/Mandriva /usr/share/zsh/functions/Completion/Redhat /usr/share/zsh/functions/Completion/Solaris /usr/share/zsh/functions/Completion/Unix /usr/share/zsh/functions/Completion/X /usr/share/zsh/functions/Completion/Zsh /usr/share/zsh/functions/Completion/openSUSE /usr/share/zsh/functions/Exceptions /usr/share/zsh/functions/MIME /usr/share/zsh/functions/Misc /usr/share/zsh/functions/Newuser /usr/share/zsh/functions/Prompts /usr/share/zsh/functions/TCP /usr/share/zsh/functions/VCS_Info /usr/share/zsh/functions/VCS_Info/Backends /usr/share/zsh/functions/Zftp /usr/share/zsh/functions/Zle ... one might imagine some shorthand '/usr/share/zsh/functions/**/' meaning to include all those subdirs in $fpath automatically without needing to write each one out literally thus fpath would look like: /usr/local/share/zsh/site-functions /usr/share/zsh/vendor-functions /usr/share/zsh/vendor-completions /usr/share/zsh/functions/**/ ... because all the subdirs of /usr/share/zsh/functions would thus be included automatically. I'm just trying to get some mileage out of the std. recursive '**' idea as used in globbing already: $ ls ./**/ ... why not use it in variables too? even: /usr/local/share/zsh/site-functions /usr/share/zsh/vendor* /usr/share/zsh/functions/**/ ... it's a bit easier on the eye.