Variable: eshell-hist-ignoredups

eshell-hist-ignoredups is a customizable variable defined in em-hist.el.gz.

Value

nil

Documentation

If non-nil, don't add input matching the last on the input ring.

The value erase mirrors the "erasedups" value of HISTCONTROL in bash, and any other non-nil value mirrors the "ignoredups" value.

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-hist.el.gz
(defcustom eshell-hist-ignoredups nil
  "If non-nil, don't add input matching the last on the input ring.
The value `erase' mirrors the \"erasedups\" value of HISTCONTROL
in bash, and any other non-nil value mirrors the \"ignoredups\"
value."
  :type '(choice (const :tag "Don't ignore anything" nil)
                 (const :tag "Ignore consecutive duplicates" t)
                 (const :tag "Only keep last duplicate" 'erase)))