Function: projectile-read-command
projectile-read-command is a byte-compiled function defined in
projectile.el.
Signature
(projectile-read-command PROMPT COMMAND &optional COMMAND-TYPE)
Documentation
Adapted from the function compilation-read-command(var)/compilation-read-command(fun).
COMMAND-TYPE, when non-nil, selects the per-type command history
(see projectile--get-command-history) as the minibuffer history.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-read-command (prompt command &optional command-type)
"Adapted from the function `compilation-read-command'.
COMMAND-TYPE, when non-nil, selects the per-type command history
\(see `projectile--get-command-history') as the minibuffer history."
(let ((compile-history
;; fetch the command history for the current project
(ring-elements (projectile--get-command-history (projectile-acquire-root)
command-type))))
(read-shell-command prompt command
(if (equal (car compile-history) command)
'(compile-history . 1)
'compile-history))))