add rbenv to path and track .gemrc

This commit is contained in:
James Dixon 2021-01-30 16:19:55 -05:00
parent 64de0f409e
commit b33054e59a
2 changed files with 7 additions and 0 deletions

View File

@ -228,6 +228,12 @@ fi
# ruby # ruby
if command -v ruby > /dev/null && command -v gem > /dev/null; then if command -v ruby > /dev/null && command -v gem > /dev/null; then
appendpath "$(ruby -r rubygems -e 'puts Gem.user_dir')/bin" appendpath "$(ruby -r rubygems -e 'puts Gem.user_dir')/bin"
# rbenv shim
if [ -d "$HOME/.rbenv/bin" ]; then
appendpath "$HOME/.rbenv/bin"
eval "$(rbenv init -)"
fi
fi fi
# go # go

1
files/gem/.gemrc Normal file
View File

@ -0,0 +1 @@
gem: --no-document