---
title: Use Bundler's binstubs!
teaser:
tags: web,ruby
author: Gabe Berke-Williams
published_on: 2012-01-05
---

If you’re not using bundler’s binstubs with <abbr title="Ruby Version
Manager">RVM</abbr> integration yet, you should give it a try! This means you
don’t have to type “bundle exec” ever again.

Setup:

* One time, run `chmod +x $rvm_path/hooks/after_cd_bundler`
* Once for each project, run `bundle install -—binstubs`

With <abbr title="Ruby Version Manager">RVM</abbr> integration enabled, the
`bin` directory is added to your path each time you cd into a project directory
with binstubs. That means you can just run `rake`. If you aren’t ignoring the
`bin` directory in your project, you should do so:

    # .gitignore
    bin/
