Hi, On Thu, Jan 16, 2020 at 08:47:43AM -0600, Matthew Martin wrote: > On Thu, Jan 16, 2020 at 03:32:36PM +0100, Klemens Nanni wrote: > > On Thu, Jan 16, 2020 at 02:20:09PM +0000, Edd Barrett wrote: > > > > export FZF_DEFAULT_OPTS="--ansi" > > > . /usr/local/share/fzf/shell/key-bindings.zsh > > > . /usr/local/share/fzf/shell/completion.zsh > > > ``` > > The usual patterns for zsh are the following > > > > /usr/local/share/zsh/vendor-completions/_fzf > > /usr/local/share/zsh/site-functions/_fzf > > At least for zsh /usr/local/share/zsh/site-functions/_fzf should be used > since it's in the default fpath. Not sure where vendor-completions came > from; it doesn't occur anywhere in the zsh source.
It'd be good to know when to use which of these two paths. Our packages seem to use both: ``` $ find site-functions site-functions site-functions/_cargo site-functions/_the_silver_searcher site-functions/_rg site-functions/_bspc site-functions/_pulseaudio $ find vendor-completions vendor-completions vendor-completions/_zathura vendor-completions/_mpv ``` As you say, only site-functions is in the default fpath... Also we have two fzf files to install, so do we concatenate them, or call one _fzf_bindings and the other _fzf_completions, or does one file go in each of the above directories? Do you have to do anything to have functionality loaded from fpath? I was expecting these files to be automatically sourced, but it seems they are not... -- Best Regards Edd Barrett http://www.theunixzoo.co.uk
