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

Re: User installation script for new completion



"Bart Schaefer" wrote:
> On May 3, 12:00pm, Peter Stephenson wrote:
> } This fails when functionargzero is not set.  Great.  Any better
> } suggestions?
> 
> Have it test [[ -o functionargzero ]] and skip this when it's not set?

That doesn't really matter, since if the option isn't set, $0 is the shell
name and won't have a / in, so the test fails anyway.  Maybe I'll add an
option to compinit to pass down it's own path for use in the test --- it's
not very useful for ordinary users, but could smooth things with
compinstall.  And I should turn . into $PWD.

Maybe it's worth checking for Core etc. subdirectories at that point and
adding them all to $fpath.  Does anyone have any preferences for where to
install functions, if I ever get round to this?  I had imagined just
putting them all (i.e. including Functions stuff) in one big directory.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



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