Function: projectile-read-command
projectile-read-command is a byte-compiled function defined in
projectile.el.
Signature
(projectile-read-command PROMPT COMMAND)
Documentation
Adapted from the function compilation-read-command(var)/compilation-read-command(fun).
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-read-command (prompt command)
"Adapted from the function `compilation-read-command'."
(let ((compile-history
;; fetch the command history for the current project
(ring-elements (projectile--get-command-history (projectile-acquire-root)))))
(read-shell-command prompt command
(if (equal (car compile-history) command)
'(compile-history . 1)
'compile-history))))