From 714d9738ccfd2e140e5aadfce23bca768f5a6804 Mon Sep 17 00:00:00 2001 From: Akib Azmain Turja Date: Sun, 11 Dec 2022 00:20:05 +0600 Subject: [PATCH] Fix Eshell working directory tracking * eat.el (eat--eshell-local-mode): Call 'eat--eshell-update-cwd'. * eat.el (eat-eshell-mode): Don't call 'eat--eshell-update-cwd'. --- eat.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eat.el b/eat.el index 2953aeb..b8e58c4 100644 --- a/eat.el +++ b/eat.el @@ -5567,6 +5567,7 @@ sane 2>%s ; if [ $1 = .. ]; then shift; fi; exec \"$@\"" ;; Make sure glyphless character don't display a huge box glyph, ;; that would break the display. (eat--setup-glyphless-chars) + (eat--eshell-update-cwd) (when eat-enable-blinking-text (eat-blink-mode +1))) (t @@ -5659,7 +5660,6 @@ sane 2>%s ; if [ $1 = .. ]; then shift; fi; exec \"$@\"" (eat--eshell-local-mode +1)))) (add-hook 'eshell-mode-hook #'eat--eshell-local-mode) (add-hook 'eshell-directory-change-hook #'eat--eshell-update-cwd) - (eat--eshell-update-cwd) (setq eshell-variable-aliases-list `(("TERM" eat--eshell-term-name t) ("TERMINFO" eat-term-terminfo-directory t)