about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2021-11-19 21:50:33 +0100
committerOliver Kiddle <opk@zsh.org>2021-11-19 21:50:33 +0100
commit8cf76fb8f923917af3c21036c5132256d6b421e1 (patch)
tree0cca1322b878dd1ebd529178db62e62ae3c39c2d /Completion
parent12dc20832d3db73b80ab282cc667abe86a17917b (diff)
downloadzsh-8cf76fb8f923917af3c21036c5132256d6b421e1.tar.gz
zsh-8cf76fb8f923917af3c21036c5132256d6b421e1.tar.xz
zsh-8cf76fb8f923917af3c21036c5132256d6b421e1.zip
49584: allow for build options in gem install completion
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_gem5
1 files changed, 5 insertions, 0 deletions
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' )
     ;|