An improved version released as bih/rails-r has been released. Check it out.
I really don't like navigating through folders when building a Rails app. Folders are cool though.
Anyway, I built a cool command that I use which allows you to swiftly move across Rails folders. I call it the r
command.
Here is some examples. You can be in any subfolder of a Rails project and the command will work.
-
Open up the Gemfile for the current Rails project I am on.
r Gemfile
-
Go to the stylesheets You can even put an
alias
on the below (I have).r app/assets/stylesheets
You'll need Git to use this. Works with non-Rails projects too (Git helps figure root directory + rest is pure bash).