Those of you who've found value in my last couple of bash specific posts may also like the latest addition to my
This one iterates through the one or more directories and creates aliases to the subdirectories so I don't have to. Here's the scenario: I've got a directory ~/work/ where I keep work projects, a ~/writings/ where I keep all the writing projects and so on. I used to have aliases to each subdirectory. e.g.
alias project1="cd /Users/muness/work/project1". With shame, I admit that I maintained each of these manually. No more!
curl -L http://github.com/relevance/etc/tree/master%2Fbash%2Fproject_aliases.sh?raw=true?raw=true > ~/.project_aliases.sh
echo "source ~/. project_aliases.sh" >> ~/.bash_profile
- Move your work projects to
- Above the
source ~/. project_aliases.shadd
You may be interested in my blog post over at PragMactic OS-Xer where I describe my motivation for these recent shell scripts.