diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2015-09-10 02:03:47 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-09-10 02:04:40 +0200 |
commit | e9fcbb334eebdc4a581bf72f1c2e403a4e685ff7 (patch) | |
tree | 28fdc7bb9ba60d9f56acab7c42bfacbcce1f84d9 /share/completions/rbenv.fish | |
parent | babc6f0f9c833f0412f32d054dda56100ac1f7e7 (diff) |
rbenv completion: Support ruby-build as plugin
Fixes #1028
Diffstat (limited to 'share/completions/rbenv.fish')
-rw-r--r-- | share/completions/rbenv.fish | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/completions/rbenv.fish b/share/completions/rbenv.fish index 4fbddff1..f5b277e0 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 |