Skip to content

Instantly share code, notes, and snippets.

@gaffneyc
Created June 6, 2010 19:31
Show Gist options
  • Select an option

  • Save gaffneyc/427815 to your computer and use it in GitHub Desktop.

Select an option

Save gaffneyc/427815 to your computer and use it in GitHub Desktop.
# script/server with Rails 3 support
ss() {
if [ -f ./script/rails ]; then
./script/rails server $@
else
./script/server $@
fi
}
# script/console with Rails 3 support
sc() {
if [ -f ./script/rails ]; then
./script/rails console $@
else
./script/console $@
fi
}
# script/generate with Rails 3 support
sg() {
if [ -f ./script/rails ]; then
./script/rails generate $@
else
./script/generate $@
fi
}
alias ttr="touch tmp/restart.txt"
# vim:filetype=sh
@gaffneyc
Copy link
Copy Markdown
Author

Arguments weren't getting passed down.
Added sg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment