3 ms·
I think I want it for the file shortcuts alone. Those will save me tons of keystrokes.
by lancefisher 14y ago
I think I want it for the file shortcuts alone. Those will save me tons of keystrokes.
- mceachen 14y agoIf 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 14y agoI think what he means is the $e1, $e2, ... shell variable shortcut. Not the `cd` to some directory.
- jonathanwallace 14y 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.