plugins/ruby: use `_command_exists`

pull/1938/head
John D Pell 2021-09-11 18:00:07 -07:00
parent ccd8b52e89
commit b14bb4735e
1 changed files with 3 additions and 1 deletions

View File

@ -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