aboutsummaryrefslogtreecommitdiff
path: root/projectile.el
diff options
context:
space:
mode:
Diffstat (limited to 'projectile.el')
-rw-r--r--projectile.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/projectile.el b/projectile.el
index f7d4363..8db1b2a 100644
--- a/projectile.el
+++ b/projectile.el
@@ -756,11 +756,8 @@ Set to nil to disable listing submodules contents."
(cond
;; we prefer fd over find
;; note that --strip-cwd-prefix is only available in version 8.3.0+
- ((executable-find "fd")
- "fd . -0 --type f --color=never --strip-cwd-prefix")
- ;; fd's executable is named fdfind is some Linux distros (e.g. Ubuntu)
- ((executable-find "fdfind")
- "fdfind . -0 --type f --color=never --strip-cwd-prefix")
+ (projectile-fd-executable
+ (format "%s . -0 --type f --color=never --strip-cwd-prefix" projectile-fd-executable))
;; with find we have to be careful to strip the ./ from the paths
;; see https://stackoverflow.com/questions/2596462/how-to-strip-leading-in-unix-find
(t "find . -type f | cut -c3- | tr '\\n' '\\0'"))