I like setting up aliases to project directories I use a lot. It's kinda annoying though to run pwd
and then redirecting that to .bash_aliases
or whatever and then manually adding an alias. So I wrote aliasify.
Add this line to your application's Gemfile:
gem 'aliasify'
And then execute:
$ bundle
Or install it yourself as:
$ gem install aliasify
Once the gem is installed (and you've run rbenv rehash
...), go to your oft-used project directory. Now, run
$ aliasify <insert-alias-name-you'd-like-here>
Now, just source .bash_aliases
(or whatever file you use to store aliases, the gem will tell you which one you need to source). For example, I used to work on PrettyPrintGmail a lot at one point. So I would set up something like: aliasify pp
. Then on start-up I could type in pp
and be taken directly to the directory.
- Fork it ( https://github.com/[my-github-username]/aliasify/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request