Function: projectile--strip-fd-cwd-prefix-flag

projectile--strip-fd-cwd-prefix-flag is a byte-compiled function defined in projectile.el.

Signature

(projectile--strip-fd-cwd-prefix-flag COMMAND)

Documentation

Remove fd's --strip-cwd-prefix flag (with any =<when> value) from COMMAND.

Also drops the space that preceded it, so the remaining command stays tidy.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--strip-fd-cwd-prefix-flag (command)
  "Remove fd's `--strip-cwd-prefix' flag (with any `=<when>' value) from COMMAND.
Also drops the space that preceded it, so the remaining command stays
tidy."
  (replace-regexp-in-string
   " ?--strip-cwd-prefix\\(=[^ ]*\\)?"
   ""
   command t t))