diff options
Diffstat (limited to 'sh/.config/profile.d/20-ruby.sh')
-rw-r--r-- | sh/.config/profile.d/20-ruby.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sh/.config/profile.d/20-ruby.sh b/sh/.config/profile.d/20-ruby.sh new file mode 100644 index 0000000..1336853 --- /dev/null +++ b/sh/.config/profile.d/20-ruby.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +if command -v ruby >/dev/null && command -v gem >/dev/null; then + GEM_USER_DIR="$(ruby -r rubygems -e 'puts Gem.user_dir')" + export PATH="$PATH:$GEM_USER_DIR" +fi |