rbenv completion: Support ruby-build as plugin

Fixes #1028
This commit is contained in:
Fabian Homborg 2015-09-10 02:03:47 +02:00
parent babc6f0f9c
commit e9fcbb334e

View File

@ -28,7 +28,11 @@ function __fish_rbenv_installed_rubies
end
function __fish_rbenv_official_rubies
ruby-build --definitions
if command -s ruby-build >/dev/null
ruby-build --definitions
else
rbenv install --list
end
end
function __fish_rbenv_prefixes