mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Make ruby setup compatible with homebrew installed rbenv
This commit is contained in:
@@ -46,10 +46,13 @@ fi
|
|||||||
# Load rbenv or RVM depending on which is available
|
# Load rbenv or RVM depending on which is available
|
||||||
if [ -d "$HOME/.rbenv/bin" ]; then
|
if [ -d "$HOME/.rbenv/bin" ]; then
|
||||||
path_prepend "$HOME/.rbenv/bin"
|
path_prepend "$HOME/.rbenv/bin"
|
||||||
# if [[ ":$PATH:" != *":$HOME/.rbenv/shims:"* ]]; then
|
fi
|
||||||
|
|
||||||
|
if [ -n "$(command -v rbenv)" ]; then
|
||||||
eval "$(rbenv init -)"
|
eval "$(rbenv init -)"
|
||||||
# fi
|
fi
|
||||||
elif [ -s "$HOME/.rvm/scripts/rvm" ]; then
|
|
||||||
|
if [ -s "$HOME/.rvm/scripts/rvm" ]; then
|
||||||
path_append "$HOME/.rvm/bin"
|
path_append "$HOME/.rvm/bin"
|
||||||
source "$HOME/.rvm/scripts/rvm"
|
source "$HOME/.rvm/scripts/rvm"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user