Function: projectile--run-eshell

projectile--run-eshell is a byte-compiled function defined in projectile.el.

Signature

(projectile--run-eshell NEW-PROCESS &optional OTHER-WINDOW)

Documentation

Invoke eshell in the project's root.

NEW-PROCESS forces creation of a new process instead of reusing an existing buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--run-eshell (new-process &optional _other-window)
  "Invoke `eshell' in the project's root.
NEW-PROCESS forces creation of a new process instead of reusing an
existing buffer."
  (let ((project (projectile-acquire-root)))
    (projectile-with-default-dir project
      (let ((eshell-buffer-name (projectile-generate-process-name "eshell" new-process project)))
        (eshell)))))