Last active
December 13, 2022 08:37
-
-
Save andiogenes/9d48b7161332725a5697aade8238d5b2 to your computer and use it in GitHub Desktop.
Better Eshell experience with Oh My Zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open eshell in terminal emacsclient | |
alias tesh="te --eval '(restart-eshell)'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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