diff --git a/plugins/ruby/init.zsh b/plugins/ruby/init.zsh index 44114f9..936a38c 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.