shell enhancement for changing directories

DEPSTEIN%bbng at sri-unix.UUCP DEPSTEIN%bbng at sri-unix.UUCP
Thu Dec 8 02:14:00 AEST 1983


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 at 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.



More information about the Comp.unix.wizards mailing list