Merge pull request #434 from ipoval/fix_path_to_commands_installed_with_user_install_gems

fix path to commands installed by gem install --user-install
This commit is contained in:
Nils Winkler
2015-03-26 19:23:06 +01:00
2 changed files with 11 additions and 3 deletions

View File

@@ -1,5 +1,11 @@
cite about-plugin
about-plugin 'adds "remove_gem" function'
about-plugin 'ruby and rubygems specific functions and settings'
# Make commands installed with 'gem install --user-install' available
# ~/.gem/ruby/${RUBY_VERSION}/bin/
if which ruby >/dev/null && which gem >/dev/null; then
PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin";
fi
function remove_gem {
about 'removes installed gem'