Published 2012-06-21 @ 00:00
This is my eighteenth (!) entry detailing my personal “productivity pr0n”.
Watching tenderlove work is sometimes painful. Besides watching him flounder in vim, he spends a fair amount of his day in the terminal getting lost across all his projects. Between that and all the photos of his cat, gorby… it’s just sad, really. Maybe I should drink.
If only he knew of CDPATH and used it regularly. All he’d have to do is add something like this to his .bashrc:
Then he can fill
~/Links with symlinks like:
% cd ~/Links % ln -s ../Sites/tenderlovemaking.com BLOG % echo etc...
From there, anytime
cd doesn’t find the directory relative to the
current location, then cd will consult the directories in
% cd rails /Users/aaron/Work/git/rails # via ~/Work/git % cd BLOG /Users/aaron/Links/BLOG % pwd /Users/aaron/Sites/tenderlovemaking.com/ # via ~/Links/BLOG
Navigating wide and varied directories is just a matter of setting up CDPATH and/or symlinks.