Skip to content

Instantly share code, notes, and snippets.

@MarceloCajueiro
Created May 21, 2015 12:59
Show Gist options
  • Save MarceloCajueiro/d32b9cb50cfd5777052b to your computer and use it in GitHub Desktop.
Save MarceloCajueiro/d32b9cb50cfd5777052b to your computer and use it in GitHub Desktop.
Shell functions to use with Rails/Spring
rake() { if [ -f bin/rake ]; then bin/rake "$@"; else bundle exec rake "$@"; fi }
rails() { if [ -f bin/rails ]; then bin/rails "$@"; else bundle exec rails "$@"; fi }
rspec() { if [ -f bin/rspec ]; then bin/rspec "$@"; else bundle exec rspec "$@"; fi }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment