Created
November 7, 2013 09:52
-
-
Save jeremyvdw/7351993 to your computer and use it in GitHub Desktop.
Using chruby with buildbox.io
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
if [[ -e /usr/local/share/chruby ]]; then | |
# Load chruby | |
source '/usr/local/share/chruby/chruby.sh' | |
# Automatically switch rubies | |
source '/usr/local/share/chruby/auto.sh' | |
# Set a default ruby if a .ruby-version file exists in the home dir | |
if [[ -f ~/.ruby-version ]]; then | |
chruby $(cat ~/.ruby-version) | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment