$DIRSTACK
–
Directory Stack
$DIRSTACK
contains the values of the directory stack.
pushd
adds to the stack, popd
removes from the stack. The builtin command dirs
displays the values of the stack.
Links
BashSupport Pro is a Bash IDE with support for $DIRSTACK – try it now!