Run direnv/python-venv stuff after every prompt rendering in eshell

This commit is contained in:
Jeremy Dormitzer 2020-04-28 16:04:29 -04:00
parent 02007b37f2
commit df593f7cbc

View File

@ -2520,7 +2520,7 @@ And a function to run any program visually:
Load .dir-locals.el when switching directories:
#+BEGIN_SRC emacs-lisp
(add-hook 'eshell-mode-hook #'hack-dir-local-variables-non-file-buffer)
(add-hook 'eshell-directory-change-hook #'hack-dir-local-variables-non-file-buffer)
(add-hook 'eshell-after-prompt-hook #'hack-dir-local-variables-non-file-buffer)
#+END_SRC
A function to properly clear the eshell: