17 lines
478 B
Bash
17 lines
478 B
Bash
cite about-plugin
|
|
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
|
|
pathmunge "$(ruby -e 'print Gem.user_dir')/bin" after
|
|
fi
|
|
|
|
function remove_gem {
|
|
about 'removes installed gem'
|
|
param '1: installed gem name'
|
|
group 'ruby'
|
|
|
|
gem list | grep $1 | awk '{ print $1; }' | xargs sudo gem uninstall
|
|
}
|