From 8ee6634c938165567b089fc0e15fdd68fa50b1f6 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Wed, 21 Aug 2013 13:31:38 +0200 Subject: [PATCH] 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 --- modules/ruby/init.zsh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/ruby/init.zsh b/modules/ruby/init.zsh index 0303d5a..1f74809 100644 --- a/modules/ruby/init.zsh +++ b/modules/ruby/init.zsh @@ -23,14 +23,9 @@ elif [[ -s "$HOME/.rbenv/bin/rbenv" ]]; then elif (( $+commands[rbenv] )); then 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 - path=($HOME/.gem/ruby/*/bin(N) $path) - fi + path=($HOME/.gem/ruby/*/bin(N) $path) fi # Return if requirements are not found.