From b0d47546fe920ac6a91c31078f399f947a36a9d9 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Wed, 28 Dec 2011 16:48:25 -0500 Subject: [PATCH] Do not assume a specific Ruby version. --- plugins/ruby/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ruby/init.zsh b/plugins/ruby/init.zsh index 44114f9d41f4..936a38c38f4b 100644 --- a/plugins/ruby/init.zsh +++ b/plugins/ruby/init.zsh @@ -1,6 +1,6 @@ # Install local gems according to Mac OS X conventions. if [[ "$OSTYPE" == darwin* ]]; then - export GEM_HOME=$HOME/Library/Ruby/Gems/1.8 + export GEM_HOME="$HOME/Library/Ruby/Gems/${$(ruby --version)[6,8]}" path=("$GEM_HOME/bin" $path) # Set environment variables for launchd processes.