mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 18:38:00 +00:00
Do not define $GEM_HOME
Defining it breaks gems for all users who neither use RVM nor rbenv, but have a different default Ruby version nonetheless. Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
This commit is contained in:
parent
959887013d
commit
8ee6634c93
@ -23,15 +23,10 @@ elif [[ -s "$HOME/.rbenv/bin/rbenv" ]]; then
|
|||||||
elif (( $+commands[rbenv] )); then
|
elif (( $+commands[rbenv] )); then
|
||||||
eval "$(rbenv init - --no-rehash zsh)"
|
eval "$(rbenv init - --no-rehash zsh)"
|
||||||
|
|
||||||
# Install local gems according to operating system conventions.
|
# Prepend local gems bin directories to PATH.
|
||||||
else
|
|
||||||
if [[ "$OSTYPE" == darwin* ]]; then
|
|
||||||
export GEM_HOME="$HOME/Library/Ruby/Gems/1.8"
|
|
||||||
path=("$GEM_HOME/bin" $path)
|
|
||||||
else
|
else
|
||||||
path=($HOME/.gem/ruby/*/bin(N) $path)
|
path=($HOME/.gem/ruby/*/bin(N) $path)
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# Return if requirements are not found.
|
# Return if requirements are not found.
|
||||||
if (( ! $+commands[ruby] && ! ( $+commands[rvm] || $+commands[rbenv] ) )); then
|
if (( ! $+commands[ruby] && ! ( $+commands[rvm] || $+commands[rbenv] ) )); then
|
||||||
|
Loading…
Reference in New Issue
Block a user