From 5cc577656615f2807086f7f2bd5cd34f25417802 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 4 Feb 2019 19:13:17 +0100 Subject: [PATCH] Eshell: Discard "cd" calls from history --- .emacs.d/lisp/init-eshell.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.emacs.d/lisp/init-eshell.el b/.emacs.d/lisp/init-eshell.el index 6a66c216..25a39cbe 100644 --- a/.emacs.d/lisp/init-eshell.el +++ b/.emacs.d/lisp/init-eshell.el @@ -211,6 +211,8 @@ ;; (including Emacs/Eshell functions). ;; (/= eshell-last-command-status 0) (string= "" str) + (string= "cd" str) + (string-prefix-p "cd " str) (string-prefix-p " " str))))) ;;; Shared history.