Skip to content

Instantly share code, notes, and snippets.

@Peeja
Created May 2, 2010 19:52
Show Gist options
  • Save Peeja/387385 to your computer and use it in GitHub Desktop.
Save Peeja/387385 to your computer and use it in GitHub Desktop.
# bundlesh:
# Starts a bash session in which gem binaries are run from the bundle instead of system gems.
# Saves your fingers from typing `bundle exec` all day.
# I tried to patch bundler to implement this as bundlesh, but I had trouble
# when PS1 wasn't exported (which it isn't, out of the box).
alias bundlesh='bundle exec env PS1="(\e[32mbundler\e[0m) ${PS1}" $SHELL'
# For extra fun with RubyMine, run bundlesh and then run:
# /Applications/RubyMine\ 2.0.2.app/Contents/MacOS/rubymine &
# (or wherever you've got it) to boot RubyMine inside the bundle
# environment. All your bundled gems are available to be attached!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment