diff options
author | Christophe Bliard <christophe.bliard@trux.info> | 2021-10-27 11:40:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 11:40:09 +0200 |
commit | 2e46b2a2dcb96cadd94283bdce95eca75bef1433 (patch) | |
tree | 4ef96a766c3d88aca5783b89deccce560c9b10f0 | |
parent | 1dba1120410280699c6a97a5252bab24681b46b8 (diff) | |
download | zsh-2e46b2a2dcb96cadd94283bdce95eca75bef1433.tar.gz zsh-2e46b2a2dcb96cadd94283bdce95eca75bef1433.tar.bz2 zsh-2e46b2a2dcb96cadd94283bdce95eca75bef1433.zip |
feat(fzf): support getting fzf from nix-darwin (#10355)
-rw-r--r-- | plugins/fzf/fzf.plugin.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/fzf/fzf.plugin.zsh b/plugins/fzf/fzf.plugin.zsh index a979fe222..aabd62cb1 100644 --- a/plugins/fzf/fzf.plugin.zsh +++ b/plugins/fzf/fzf.plugin.zsh @@ -20,7 +20,9 @@ function setup_using_base_dir() { done if [[ -z "${fzf_base}" ]]; then - if (( ${+commands[brew]} )) && dir="$(brew --prefix fzf 2>/dev/null)"; then + if (( ${+commands[fzf-share]} )) && dir="$(fzf-share)" && [[ -d "${dir}" ]]; then + fzf_base="${dir}" + elif (( ${+commands[brew]} )) && dir="$(brew --prefix fzf 2>/dev/null)"; then if [[ -d "${dir}" ]]; then fzf_base="${dir}" fi |