Skip to content

Instantly share code, notes, and snippets.

@larzconwell
Created June 4, 2012 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larzconwell/2870608 to your computer and use it in GitHub Desktop.
Save larzconwell/2870608 to your computer and use it in GitHub Desktop.
function rn {
local app_name=$1
shift
# Doing "$@" will include all arguments(Including the app name)
# But if you make it skip the first argument it will fix that (:
rails new $app_name --skip-bundle "${@:2}" && cd $app_name && bundle install --local
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment