From 05bdb1e12ce65c563b8389775443f7a9d6c109c4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 28 Jun 2018 16:58:28 +0200 Subject: [PATCH] eshell-input-filter = eshell-input-filter-initial-space Don't record a command in history if prefixed with whitespace. --- modules/emacs/eshell/config.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/emacs/eshell/config.el b/modules/emacs/eshell/config.el index 96490c875..aa88bdc59 100644 --- a/modules/emacs/eshell/config.el +++ b/modules/emacs/eshell/config.el @@ -54,6 +54,8 @@ You should use `det-eshell-alias!' to change this.") eshell-buffer-shorthand t eshell-kill-processes-on-exit t eshell-hist-ignoredups t + ;; don't record command in history if prefixed with whitespace + eshell-input-filter #'eshell-input-filter-initial-space ;; em-prompt eshell-prompt-regexp "^.* λ " eshell-prompt-function #'+eshell-default-prompt