Also, the built-in pushd and popd commands are enough sometimes.
I came here to say this. A small wrapper around these commands would make for a sufficient script.
I came here to say this. A small wrapper around these commands would make for a sufficient script.