From 0c9c099ac357c23ac4308cd6ba25c4f74bdf4328 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Wed, 22 May 2013 19:38:19 +0200 Subject: [PATCH] Add the RubyGems bin directory to PATH on other Unix systems Signed-off-by: Sorin Ionescu --- modules/ruby/init.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ruby/init.zsh b/modules/ruby/init.zsh index b287cbb2..0303d5a3 100644 --- a/modules/ruby/init.zsh +++ b/modules/ruby/init.zsh @@ -28,6 +28,8 @@ 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 fi @@ -58,4 +60,3 @@ if (( $+commands[bundle] )); then && print vendor/bundle >>! .gitignore \ && print vendor/cache >>! .gitignore' fi -