convenient Rails bindings for zsh
https://github.com/djberube/rails-zshrc.git
Installation ============
Place .zshrc-rails in your $HOME and place the following line in your .zshrc:
source $HOME/rails-zshrc/.zshrc-rails
Usage =====
You get a few convenient aliases; rss, for example, is the same as ruby script/server, rsc is ruby script/console, and rdb is rake db:migrate.
Additionally, you get an entire class of acronym'd directory changing commands; for example:
cd myrailsapplication rpj
This lets you quickly traverse your Rails tree. Additionally, there's an rpwd alias that returns the Rails root path, so you can do stuff like this:
vim rpwd/config/environment.rb
The above commands all work anywhere inside of a Rails application; they'll twitch out if used outside of a Rails application, though, and you'll have to kill them with CTRL-C. (I may fix this in a later release, but I don't really have a problem with it.
There are a number of other aliases; rsc is ./script/console, rr is rake routes, rdbm is rake db:migrate, rss is ./script/server, etc. View the file for the complete list. Suggestions and additions are highly appreciated; feel free to email me at djberube@berubeconsulting.com or to message me and/or send pull requests on GitHub. Credits ======= Somebody else originally wrote the directory aliases for BASH; I ported a (modified) version to zsh.