From d034bc2004ad6873d80e9cff1ef69b4445137135 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 24 Jun 2020 19:48:10 -0400 Subject: [PATCH] Fix #3425: eagerly resolve path to fd executable This ensures that the correct binary is found, even if you're remoting onto a system where `fd` is named `fdfind`. --- core/core-projects.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-projects.el b/core/core-projects.el index e0c766d3b..0a54227f3 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -154,7 +154,9 @@ And if it's a function, evaluate it." ;; `projectile-globally-ignored-directories' are respected. (lambda (_) (concat (format "%s . -0 -H -E .git --color=never --type file --type symlink --follow" - doom-projectile-fd-binary) + (or (cl-find-if (doom-rpartial #'executable-find t) + '("fdfind" "fd")) + "fd")) (cl-loop for dir in projectile-globally-ignored-directories concat " -E " concat (shell-quote-argument dir))