Unverified Commit 2e46b2a2 authored by Christophe Bliard's avatar Christophe Bliard Committed by GitHub

feat(fzf): support getting fzf from nix-darwin (#10355)

parent 1dba1120
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment