Directory Stack Builtins

dirs #

Prints current directory stack.

popd #

Removes current directory from stack and cds into previous directory on the stack.

pushd #

Usage: pushd /some/dir

Pushes directory onto stack and cds into that directory.

Example #

i[akraker@localhost ~]$ pushd ~/wiki
~/wiki ~
i[akraker@localhost wiki]$ pushd ~/dotfiles
~/dotfiles ~/wiki ~
i[akraker@localhost dotfiles]$ dirs
~/dotfiles ~/wiki ~
i[akraker@localhost dotfiles]$ popd
~/wiki ~
i[akraker@localhost wiki]$ popd
~