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. OTHER-WINDOW displays it in another window.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260930.434/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.  OTHER-WINDOW displays it in another window."
  (let ((project (projectile-acquire-root)))
    (projectile-with-default-dir project
      (let ((eshell-buffer-name (projectile-generate-process-name "eshell" new-process project)))
        (projectile--displaying-in-other-window other-window
          (eshell))))))