Raveen Kumar

Open new eshell buffer without closing the current one

I usually run multiple shell instances in terminal. If you already have one eshell buffer open. You can use prefix command to open a new eshell buffer without closing the current one.

C-u M-x eshell

https://stackoverflow.com/questions/2540997/create-more-than-one-eshell-instance-in-emacs/75480565#75480565

Here is my implementation of new eshell buffer / instance.

(defun eshell-new-buffer (args)
  "Create a new eshell buffer."
  (interactive "P")
  (eshell "new")
  )


(global-set-key (kbd "C-c e e") 'eshell)

(global-set-key (kbd "C-c e n") 'eshell-new-buffer)

#Emacs #Elisp #Eshell