From d48e54e504260f0702cfd28a8186aa442e7e3991 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Wed, 21 Aug 2013 13:31:38 +0200 Subject: [PATCH] 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`. --- modules/ruby/init.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ruby/init.zsh b/modules/ruby/init.zsh index 0303d5a34c..4a1902a78c 100644 --- a/modules/ruby/init.zsh +++ b/modules/ruby/init.zsh @@ -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