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

Re: Completion collision, best way to fix



On 2012-09-28 at 18:12 -0700, Danek Duvall wrote:
> On Fri, Sep 28, 2012 at 07:59:36AM -0700, Bart Schaefer wrote:
> > In practice I'm not sure any of the distribution package maintainers 
> > actually take the step of removing the "irrelevant" functions from the
> > tree; maybe some change the default fpath in /etc/zshrc or the like.
> 
> Given that I'm the zsh integrator for Solaris ...
> 
> Is there a way for the build process to put the "native" OS-specific
> directory ahead of the rest?  If not, would a patch to do that be
> appreciated?  I could take the easy way out and simply drop the BSD _pkg
> from the Solaris zsh package, but it'd be nice not to have to.

You can use --enable-additional-fpath to add entries to the default
fpath; the order used is "site", "additional", "install locations".
Since the list is scanned in order, uniqueness isn't required and you
can just replicate an entry that will appear later.

See the "INSTALL" file for details on the syntax of the option.

If runtime works, then just:
  typeset -U fpath
  fpath=(${fpath[(R)*/Solaris]} $fpath)

-Phil



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