Skip to content

Instantly share code, notes, and snippets.

@cbfrance
Last active December 14, 2015 21:19
Show Gist options
  • Save cbfrance/5150355 to your computer and use it in GitHub Desktop.
Save cbfrance/5150355 to your computer and use it in GitHub Desktop.

First make sure you understand binstubs.

Follow this excellent tutorial on rubies and bundles.

For reasons explained there, you could:

bundle install --binstubs=.bundle/bin

and edit your path:

echo "PATH=.bundle/bin:$PATH" >> ~/.bashrc

but then you still have to remember to run bundle install with that stuff on the end so do this:

$ cat ~/.bundle/config
---
BUNDLE_PATH: .bundle
BUNDLE_BIN: .bundle/bin

Then you can just bundle install and it works.

And if you wanna update Sublime Text:

{
  "folders":
  [
    {
      "folder_exclude_patterns": [".bundle/bin"]
    }
  ]
}

via Stop typing bundle exec with rbenv

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