diff options
| author | Miles Liu <miles@bung.cc> | 2023-10-11 14:56:34 +0800 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@batsov.dev> | 2023-10-11 09:44:41 +0200 |
| commit | f34d5245c0afee5ffe48ae9966892edb744d339e (patch) | |
| tree | 4b7102dee28d3e19e20b084e46efd6b794667695 /projectile.el | |
| parent | 0ad826213a18afcba6d8f412fdb462850b29239c (diff) | |
[Fix #1853] `projectile-generic-command` should use `projectile-fd-executable` to find the path for fd
Diffstat (limited to 'projectile.el')
| -rw-r--r-- | projectile.el | 7 |
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'")) |
