Skip to content

Commit 084cf34

Browse files
committed
Fix the fzf configuration
Check if `fzf` is in PATH before falling back to the vim-plug installation location at `~/.fzf/bin/fzf`. This removes the assumption that `fzf` is installed via Homebrew. Closes #779
1 parent 0d19f52 commit 084cf34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

zsh/configs/fzf.zsh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/usr/bin/env zsh
22

3-
source <(/opt/homebrew/bin/fzf --zsh)
3+
if command -v fzf > /dev/null; then
4+
source <(fzf --zsh)
5+
elif [[ -x ~/.fzf/bin/fzf ]]; then
6+
source <(~/.fzf/bin/fzf --zsh)
7+
fi

0 commit comments

Comments
 (0)