Skip to content

Instantly share code, notes, and snippets.

Avatar

Steve Books stevebooks

View GitHub Profile
View gist:5543695
function r() {
if [[ "g|generate|c|console|s|server|db|dbconsole|new" =~ $1 ]]; then
if [ -x script/rails ]; then
script/rails $@
else
bundle exec rails $@
fi
else
if [ -x script/rake ]; then
script/rake $@
View gist:5230333
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
You can’t perform that action at this time.