[net.unix-wizards] shell enhancement for changing directories

DEPSTEIN%bbng@sri-unix.UUCP (12/07/83)

If you use "pushd newdir" instead of "cd newdir" then the new directory
is added to your directory stack.  You can then toggle between your
current and previous directory by giving a "pushd" without any arguments.
(It swaps the top two args on the stack and leaves the rest in order).

Dave Epstein
depstein@bbn-unix
...decvax!bbncca!depstein

P.S.  The command "dirs" shows you the directory stack and is a lot
faster than "pwd" for figuring out where you are.