Post #3021385
2026-05-16 15:54 UTC
How cute! A disposable #Emacs #eshell for quick tasks:
```
(defun my/eshell-toggle ()
(interactive)
(let ((eshell-buffer-name "*eshell-toggle*"))
(if (get-buffer-window eshell-buffer-name)
(delete-windows-on eshell-buffer-name t)
(progn
(select-window (split-root-window-below))
(eshell)))))
```
Quick and dirty, there are better alternatives out there (e.g. https://github.com/karthink/popper ?) - but it works!
Replies (0)
No replies.