Skip to content

Error from conflicting fzf installation presumptions #779

@dcalhoun

Description

@dcalhoun

Similar to #778, the recent changes in #767 now cause an error if fzf is not installed via Homebrew specifically:

/Users/[REDACTED]/.zsh/configs/fzf.zsh:3: no such file or directory: /opt/homebrew/bin/fzf

Prior to #767, there was no expectation that fzf was installed via Homebrew. The vimrc.bundles logic includes fallback installation of fzf:

dotfiles/vimrc.bundles

Lines 20 to 30 in 0d19f52

" If fzf has already been installed via Homebrew, use the existing fzf
" Otherwise, install fzf. The `--all` flag makes fzf accessible outside of vim
if executable("brew")
let g:brew_fzf_path = trim(system("brew --prefix fzf"))
endif
if exists("g:brew_fzf_path") && isdirectory(g:brew_fzf_path)
Plug g:brew_fzf_path
else
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
endif

But the new changes in #767 presume it is installed via Homebrew:

#!/usr/bin/env zsh
source <(/opt/homebrew/bin/fzf --zsh)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions