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.
|
||||
else
|
||||
if [[ "$OSTYPE" == darwin* ]]; then
|
||||
export GEM_HOME="$HOME/Library/Ruby/Gems/1.8"
|
||||
path=("$GEM_HOME/bin" $path)
|
||||
path=("$HOME/Library/Ruby/Gems/1.8/bin" $path)
|
||||
else
|
||||
path=($HOME/.gem/ruby/*/bin(N) $path)
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue