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`.
This commit is contained in:
parent
3cf726c07a
commit
d034bc2004
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue