Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: function install



> Zowie!  I have seen the SUBDIRS!
  ^^^^^^
  Sorry, that should be `Yow!'  I think it was Captain Caveman where they
said `Zowie!'.  (`Yow!  Is this the SPORTS SHOP where CAVIE buys his
CLUBS????')  But I digress.

A question occurred to me.

Update for zsh-users:  Configuration of modules in zsh 4.0 will only
require changes in a single file, config.modules.  I am just fixing up
installation of functions with the --enable-function-subdirs option, which
installs the functions into separate subdirectories and creates a default
$fpath which includes all of them.

In 3.1.9, the subdirectories are one level deep:  functions installed from
Functions/Misc/* go into Misc/*, from Completion/Core/* into Core/*.  It is
possible (indeed, it would now be simpler and more flexible) to use the
actual subdirectory path, i.e. functions would go into
  /usr/local/share/zsh/<version>/functions/Functions/Misc
  /usr/local/share/zsh/<version>/functions/Completion/Core
etc.  In this case the extra `Functions' isn't much use, but in the case of
Completion it is a bit cleaner.

What does anybody want?  I could make it so that Functions/ always gets
removed, but the Completion/ prefix stays.  Then you would get

	              .../functions
                 /             |        \
      Completion              Zftp       Misc
  /   |    |      \
Core Base Builtins ...

which is fairly neat (unlike my drawing).

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070



Messages sorted by: Reverse Date, Date, Thread, Author