Don't mingle GEM_HOME
Breaks Gems for all users who user neither Rbenv nor RVM, but have a different default Ruby version nonetheless, e.g. by `brew install ruby`.
This commit is contained in:
parent
959887013d
commit
d48e54e504
1 changed files with 1 additions and 2 deletions
|
@ -26,8 +26,7 @@ elif (( $+commands[rbenv] )); then
|
||||||
# Install local gems according to operating system conventions.
|
# Install local gems according to operating system conventions.
|
||||||
else
|
else
|
||||||
if [[ "$OSTYPE" == darwin* ]]; then
|
if [[ "$OSTYPE" == darwin* ]]; then
|
||||||
export GEM_HOME="$HOME/Library/Ruby/Gems/1.8"
|
path=("$HOME/Library/Ruby/Gems/1.8/bin" $path)
|
||||||
path=("$GEM_HOME/bin" $path)
|
|
||||||
else
|
else
|
||||||
path=($HOME/.gem/ruby/*/bin(N) $path)
|
path=($HOME/.gem/ruby/*/bin(N) $path)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue