Aliasify
Isn't it annoying when you have to spell out the full path to projects that you often work on? I like setting up aliases to project directories. 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.
Installation
Add this line to your application's Gemfile:
gem 'aliasify'
And then execute:
$ bundle
Or install it yourself as:
$ gem install aliasify
Usage
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>
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.
Contributing
- 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