Can I make 'cd' behave this way?
I'm a pretty new convert from Windows to Linux. In general, I quite like working (I'm a software developer) on Linux but there are a few wrinkles I'm still trying to iron out. One such issue involves navigating directories with 'cd' I often need to move back and forth between several directories each of which is quite deeply nested in separate hierarchies. I'd like to be able to provide the shell (I use bash) with a set of directories such that when I type 'cd foo' if it can't resolve 'foo' to the current directory it will search the list and execute the appropriate command if there is foo relative to one of the entires. Is there already some means to accomplish this? I'm considering writing a shell script but I'd rather not spend the time if the functionality already exists in some form. Thanks in advance for any replies.