Skip to content

Instantly share code, notes, and snippets.

@coderifous
Created February 9, 2011 15:02
Show Gist options
  • Save coderifous/818605 to your computer and use it in GitHub Desktop.
Save coderifous/818605 to your computer and use it in GitHub Desktop.
Handy aliases for frequently used bundler commands.
alias b='bundle'
# This gets used daily
alias be='b exec'
# Run this whenever there's an update to the Gemfile; regularly used.
alias bi='b install --path vendor'
# Run this the first time you add bundler to a project; rarely used.
alias binit='bi && b package && echo '\''vendor/ruby'\'' >> .gitignore'
# Using this jazz your app's gem dependencies will be packaged and a part of
# version control which gives finely controlled dependencies, reliable deployments,
# and makes it easy for team members to always be running with the right gem versions.
# Also, the unpacked libraries aren't checked in, so it's less noise in the version
# control.
# Credit to Ryan McGeary (@rmm5t) for these aliases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment