fix path to commands installed by gem install --user-install

This commit is contained in:
Ivan Povalyukhin
2015-03-25 19:23:46 -07:00
committed by Ivan Povalyukhin
parent d6e6caf3c6
commit 0dfd477978
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'