3 ms·
If you use bash or zsh, you might want to check out CDPATH. From the bash man page: CDPATH The search path for the cd command. This is a colon-separated li
by mceachen 15y ago
If you use bash or zsh, you might want to check out CDPATH. From the bash man page:
CDPATH The search path for the cd command. This is a colon-separated
list of directories in which the shell looks for destination
directories specified by the cd command. A sample value is ".:~:/usr".
- adito 15y agoI think what he means is the $e1, $e2, ... shell variable shortcut. Not the `cd` to some directory.
- jonathanwallace 15y agoBeware: CDPATH can wreck some eye-gouging pain when compiling ruby gem extensions. And by eye-gouging pain, I mean that it takes you an extended period of time to determine why you can't bundle env-js when everyone else seems to have no problem. A simple export CDPATH="" resolves the issue with no problem.