pathmunge tests
parent
7958fc450a
commit
c515f78acb
|
|
@ -29,7 +29,7 @@ _bash-it-gopath-pathmunge() {
|
|||
while [[ $i -gt 0 ]]; do
|
||||
i=$((i - 1))
|
||||
if [[ -n "${paths[i]}" ]]; then
|
||||
pathmunge "${paths[i]}/bin"
|
||||
pathmunge "${paths[i]}/bin" || true
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,9 @@ about-plugin 'ruby and rubygems specific functions and settings'
|
|||
# Make commands installed with 'gem install --user-install' available
|
||||
# ~/.gem/ruby/${RUBY_VERSION}/bin/
|
||||
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 || true
|
||||
else
|
||||
_log_warning "Unable to load Ruby plugin as a working 'ruby', or 'gem', was not found."
|
||||
fi
|
||||
|
||||
function remove_gem() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue