The following construct prepends the 38 function directories and subdirectories revision 13 creates to the $fpath array without clobbering what the user might already have:
fpath=( $(print /sw/share/zsh/**/*(/) ) $fpath )
but if you configure it the default way, it only needs two elements in the $fpath array and this has the additional merit of being added automatically.
Dear Darian:
zsh-4.2.1-13 is still broken, as there are no entries in $FPATH.
Since it is all put into subdirectories and the directory 4.2.1 has been eliminated, the default configuration for adding to $FPATH apprently fails.
If you just let them install by default in the same way as it is done in /usr/share/zsh with Apple's zsh, it is taken care of automatically. Otherwise you will have to add them all in by hand somehow, and it looks like there are about 15 or 20 instead of two.
Moreover, in the current setup, if you start /sw/bin/zsh from a /bin/zsh shell, it will inherit the wrong $FPATH, i.e, that associated with /usr/share/zsh
The revision 15 I posted on the package tracker works and sets the $FPATH correctly.
Sorry to keep complaining, but I can't add the zsh-templates until this works.
Hello
As I still do not understand what the problem is, I cannot really judge whether I can allow your way of installing it or not.
One thing is for sure, the Fink supplied zsh will, under _no_ circumstances, touch or install anything outside of /sw. If that is necessary the user has to do it by themselves.
You said that functions are usually installed i /prefix/share/zsh, so that is why I changed it to work that way with --enable-fndir=%p/share/%n everything else is now handled by the zsh make install and thus should default to whatever defaults they set.
Is this the option that is in question "--enable-function-subdirs" ?
Thanks.
signature.asc
Description: OpenPGP digital signature
