From 8cf76fb8f923917af3c21036c5132256d6b421e1 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 19 Nov 2021 21:50:33 +0100 Subject: 49584: allow for build options in gem install completion --- Completion/Unix/Command/_gem | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Completion/Unix') diff --git a/Completion/Unix/Command/_gem b/Completion/Unix/Command/_gem index 7e244ccad..7d81619bb 100644 --- a/Completion/Unix/Command/_gem +++ b/Completion/Unix/Command/_gem @@ -56,6 +56,11 @@ if [[ $state = command ]]; then check|cleanup|contents|dependency|list|open|pristine|rdoc|uninstall|unpack|update) args+=( '(--all --skip)*:installed gem:->gems-local' ) ;| + install) + (( ${(M)#line:#[^-]*} > 1 )) && args+=( + '(*)--[specify build options]:*:build option:_default' + ) + ;| fetch|install|lock|owner|search|yank) args+=( '*:gem:->gems-remote' ) ;| -- cgit 1.4.1