Created
July 10, 2012 15:33
-
-
Save ahmadseleem/3084124 to your computer and use it in GitHub Desktop.
rbenv for zshrc
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
# ------------------------------------------------------------------------------------- | |
export PATH=$PATH:$HOME/.rbenv/bin | |
export PATH=$PATH:$HOME/.rbenv/shims | |
# RVM / rbenv | |
if [[ -d ~/.rvm/ ]] && [[ -d ~/.rbenv/ ]]; then | |
# TODO: colorize | |
echo '***************************************************************' | |
echo 'ERROR!' | |
echo 'YADR found both ~/.rvm and ~/.rbenv directories. You cannot use' | |
echo 'RVM and rbenv simultaneously. Please delete one and reload zsh.' | |
echo '***************************************************************' | |
echo '' | |
else | |
if [[ -d ~/.rvm/ ]]; then | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
fi | |
if [[ -d ~/.rbenv/ ]]; then | |
eval "$(rbenv init -)" | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment