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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user