Browse files

Update ruby version management - chruby

  • Loading branch information...
1 parent eec3a31 commit 82e9a2618b96d7a352790c67995f632c8ec19603 @ts310 committed Dec 30, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 common/env
View
9 common/env
@@ -24,12 +24,13 @@ git config --global alias.co "checkout"
git config --global alias.br "branch"
git config --global alias.ci "commit"
-if [[ -s "$HOME/.rbenv/bin/rbenv" ]]
-then
+if [ -d /usr/local/opt/chruby ]; then
+ source /usr/local/opt/chruby/share/chruby/chruby.sh
+ source /usr/local/opt/chruby/share/chruby/auto.sh
+elif [[ -s "$HOME/.rbenv/bin/rbenv" ]]; then
export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
-elif [[ -s "$HOME/.rvm/scripts/rvm" ]]
-then
+elif [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
source "$HOME/.rvm/scripts/rvm"
fi

0 comments on commit 82e9a26

Please sign in to comment.