Only save eshel history when it matters

This commit is contained in:
MitchMarq42 2023-03-10 18:42:10 -09:00
parent bb5d71b380
commit bdfdb3e332

View File

@ -210,7 +210,9 @@
(add-to-list 'eshell-modules-list 'eshell-rebind) (add-to-list 'eshell-modules-list 'eshell-rebind)
(add-to-list 'eshell-modules-list 'eshell-hist) (add-to-list 'eshell-modules-list 'eshell-hist)
(add-to-list 'eshell-modules-list 'eshell-tramp) (add-to-list 'eshell-modules-list 'eshell-tramp)
(add-hook 'kill-emacs-hook #'eshell-save-some-history) (add-hook 'kill-emacs-hook (lambda ()
(if (fboundp #'eshell-save-some-history)
(eshell-save-some-history))))
(defun eshell-evil-insert-line (count &optional vcount) (defun eshell-evil-insert-line (count &optional vcount)
(interactive "p") (interactive "p")
(eshell-bol) (eshell-bol)