From e9fcbb334eebdc4a581bf72f1c2e403a4e685ff7 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 10 Sep 2015 02:03:47 +0200 Subject: [PATCH] rbenv completion: Support ruby-build as plugin Fixes #1028 --- share/completions/rbenv.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/completions/rbenv.fish b/share/completions/rbenv.fish index 4fbddff13..f5b277e0a 100644 --- a/share/completions/rbenv.fish +++ b/share/completions/rbenv.fish @@ -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