From 83f50117115f95d3e98da7f8c131cd7608fe51fe Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Sun, 19 May 2024 23:50:22 +0300 Subject: [PATCH] eshell-atuin: reset cache on update search options --- eshell-atuin.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eshell-atuin.el b/eshell-atuin.el index 50f4e95..6647cb3 100644 --- a/eshell-atuin.el +++ b/eshell-atuin.el @@ -117,7 +117,12 @@ include here. Some examples: - \\='(\"--exit\" \"0\") to filter out non-zero exit codes. - \\='(\"--exclude-cwd\" \"/some/dir\")" :group 'eshell-atuin - :type '(repeat string)) + :type '(repeat string) + :set + (lambda (sym value) + (set-default sym value) + (when (fboundp #'eshell-atuin--history-reset) + (eshell-atuin--history-reset)))) (defvar-local eshell-atuin--history-id nil "Atuin ID of the current eshell command.")