7 ms·
It's not as robust as pushd/popd, and it may vary from shell to shell, but at least in bash you can also use "cd -" to change to the previous directory.
by abathur 7y ago
It's not as robust as pushd/popd, and it may vary from shell to shell, but at least in bash you can also use "cd -" to change to the previous directory.
- jcelerier 7y agopro tip : you can also do the same with git : "git checkout -" will bring you to the previous commit you were on