Variable: shell-pushd-dunique
shell-pushd-dunique is a customizable variable defined in shell.el.gz.
Value
nil
Documentation
If non-nil, make pushd only add unique directories to the stack.
This mirrors the optional behavior of tcsh.
Probably introduced at or before Emacs version 19.20.
Source Code
;; Defined in /usr/src/emacs/lisp/shell.el.gz
(defcustom shell-pushd-dunique nil
"If non-nil, make pushd only add unique directories to the stack.
This mirrors the optional behavior of tcsh."
:type 'boolean
:group 'shell-directories)