3 ms·
For those of you who would like similar functionality sans learning of your MFU directories, you can do something like export CDPATH=($HOME/common:$HOME/repos)
by keyist 17y ago
For those of you who would like similar functionality sans learning of your MFU directories, you can do something like
export CDPATH=($HOME/common:$HOME/repos)
You'd have to manually symlink your favorite directories into ~/common, of course.
The directories listed in $CDPATH are made available to `cd` no matter what directory you are in, so if you have ~/common/downloads, you can type `cd downloads` from any directory. Tab-completion works with this too.
Not to downplay autojump -- I just prefer this approach since I explicitly control all the directories I want quick access to, and my `cd` command is deterministic (assuming I name directories to avoid conflicts).