Skip to content

Commit

Permalink
Add gem bin to PATH, fixes #34
Browse files Browse the repository at this point in the history
  • Loading branch information
mattolson committed Mar 6, 2013
1 parent a3530ad commit 5d7a6bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/rbenv.d/exec/gemset.bash
Expand Up @@ -8,6 +8,7 @@ fi

for gemset in $(rbenv-gemset active 2>/dev/null); do
path="${RBENV_GEMSET_ROOT}/$gemset"
PATH="$path/bin:$PATH"
if [ -z "$GEM_HOME" ]; then
GEM_HOME="$path"
GEM_PATH="$path"
Expand All @@ -17,5 +18,5 @@ for gemset in $(rbenv-gemset active 2>/dev/null); do
done

if [ -n "$GEM_HOME" ]; then
export GEM_HOME GEM_PATH
export GEM_HOME GEM_PATH PATH
fi

0 comments on commit 5d7a6bd

Please sign in to comment.