Menu

#117 Automatic Local Ruby Gems Inclusion

1.0
open
nobody
2014-12-27
2014-12-25
Vladius
No

Hello,

I suggest adding the following clause in a default .bashrc file to add local user ruby gems to the PATH variable (if the ruby is installed):

# Local Ruby gems inclusion.
if which ruby >/dev/null && which gem >/dev/null; then
    PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi

Otherwise, you get the messages about ruby gems folder not being in your PATH, and thereby not available to you directly.

Thank You.

Discussion

  • Alexx83

    Alexx83 - 2014-12-27

    It can break using ming-ruby from msys shell

     
    • Vladius

      Vladius - 2015-05-08

      Make a commented-out section and your notice perhaps?