I'd like to run a function whenever the current directory in eshell
changes (like a eshell-chdir-hook
, but that doesn't exist). How can I do this?
1 Answer
Well duh. The answer is to use eshell-directory-change-hook
.
Well duh. The answer is to use eshell-directory-change-hook
.
eshell
that detect things like acd ...
entry, which triggers an elisp function -- e.g.,eshell/cd
-- depending upon whether certain modules have been loaded. You could modify that function and attach your own hook, depending upon whether you use that particular module. I took overeshell
completely by making one large custom library and I no longer use modules, but it shouldn't be difficult to track down if you need some further assistance.