Created
May 2, 2010 19:52
-
-
Save Peeja/387385 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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