fzf-zsh-plugin icon indicating copy to clipboard operation
fzf-zsh-plugin copied to clipboard

Support asdf-based fzf installs

Open DWSR opened this issue 2 years ago • 3 comments

As an ASDF user, I prefer to install all my tooling through asdf. This plugin looks for fzf in a hardcoded location (~/.fzf) which causes a duplicate installation of fzf.

DWSR avatar Nov 02 '21 20:11 DWSR

Where does asdf install it?

unixorn avatar Nov 11 '21 19:11 unixorn

In a path based on the version of fzf that is currently selected.

/Users/brandonmcnama/.asdf/installs/fzf/0.27.3/bin/fzf

It looks like this plugin looks in a couple of hardcoded locations only (based on https://github.com/unixorn/fzf-zsh-plugin/blob/5758b657efa262d9cd9810d343db92ff0d58fb16/fzf-zsh-plugin.plugin.zsh#L37) Is it possible to infer the location of key-bindings.zsh based on the path of fzf?

DWSR avatar Nov 11 '21 21:11 DWSR

That will make it easier, thanks.

unixorn avatar Nov 12 '21 14:11 unixorn