aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sh/.config/profile.d/20-ruby.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/.config/profile.d/20-ruby.sh')
-rw-r--r--sh/.config/profile.d/20-ruby.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/sh/.config/profile.d/20-ruby.sh b/sh/.config/profile.d/20-ruby.sh
index 1336853..757bd95 100644
--- a/sh/.config/profile.d/20-ruby.sh
+++ b/sh/.config/profile.d/20-ruby.sh
@@ -2,5 +2,6 @@
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"
+ [ -d "$GEM_USER_DIR" ] && append_path "$GEM_USER_DIR"
+ export PATH
fi