Skip to content

Instantly share code, notes, and snippets.

@andiogenes
Last active December 13, 2022 08:37
Show Gist options
  • Save andiogenes/9d48b7161332725a5697aade8238d5b2 to your computer and use it in GitHub Desktop.
Save andiogenes/9d48b7161332725a5697aade8238d5b2 to your computer and use it in GitHub Desktop.
Better Eshell experience with Oh My Zsh
# open eshell in terminal emacsclient
alias tesh="te --eval '(restart-eshell)'"
(defun restart-eshell ()
"Kill buffer named \"*eshell*\" and start new Eshell session."
(interactive)
(kill-matching-buffers "\*eshell\*" nil t)
(eshell))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment