1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-18 03:40:08 +00:00

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

This commit is contained in:
Christophe Bliard 2021-10-27 11:40:09 +02:00 committed by GitHub
parent 1dba112041
commit 2e46b2a2dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,9 @@ function setup_using_base_dir() {
done done
if [[ -z "${fzf_base}" ]]; then 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 if [[ -d "${dir}" ]]; then
fzf_base="${dir}" fzf_base="${dir}"
fi fi