Function: projectile--fd-command-p

projectile--fd-command-p is a byte-compiled function defined in projectile.el.

Signature

(projectile--fd-command-p COMMAND)

Documentation

Return non-nil when COMMAND runs fd.

Recognised by the program it runs (fd, or fdfind as Debian names it), or by the --strip-cwd-prefix flag Projectile puts in its fd recipes, which also catches an fd installed under some other name. COMMAND may be nil, which is how Projectile spells "external-command indexing is disabled".

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260930.434/projectile.el
(defun projectile--fd-command-p (command)
  "Return non-nil when COMMAND runs `fd'.
Recognised by the program it runs (`fd', or `fdfind' as Debian names it),
or by the `--strip-cwd-prefix' flag Projectile puts in its `fd' recipes,
which also catches an `fd' installed under some other name.  COMMAND may
be nil, which is how Projectile spells \"external-command indexing is
disabled\"."
  (and command
       (or (member (projectile--ext-command-program command) '("fd" "fdfind"))
           (string-match-p "--strip-cwd-prefix\\b" command))))