plugins/ruby: use `_command_exists`
parent
ccd8b52e89
commit
b14bb4735e
|
|
@ -1,9 +1,11 @@
|
||||||
|
# shellcheck shell=bash
|
||||||
cite about-plugin
|
cite about-plugin
|
||||||
about-plugin 'ruby and rubygems specific functions and settings'
|
about-plugin 'ruby and rubygems specific functions and settings'
|
||||||
|
|
||||||
# Make commands installed with 'gem install --user-install' available
|
# Make commands installed with 'gem install --user-install' available
|
||||||
# ~/.gem/ruby/${RUBY_VERSION}/bin/
|
# ~/.gem/ruby/${RUBY_VERSION}/bin/
|
||||||
if which ruby >/dev/null && which gem >/dev/null; then
|
if _command_exists ruby && _command_exists gem
|
||||||
|
then
|
||||||
pathmunge "$(ruby -e 'print Gem.user_dir')/bin" after
|
pathmunge "$(ruby -e 'print Gem.user_dir')/bin" after
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue