next up previous contents
Next: Repeating and editing previous Up: Customizing your shell and Previous: Customizing ls   Contents

Enhancing cd using a stack

The command cd does not allow for a lot of customization, but there are two built-ins that can be used to extend the functionality of cd.

These are useful when you need to traverse a number of directories but need to return to your current location when done. Of course, if you just need to toggle between two directories, then cd - will do the trick.



Amit Jain 2013-04-22