diff options
author | michal panoch <mp@maya.cz> | 2021-12-28 17:30:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-28 17:30:32 +0100 |
commit | d806649028f60ee2efc4aac187faf252e32ba1ef (patch) | |
tree | 3a0f5195557c5996e71cf5cc776aa4b79297e328 /plugins | |
parent | c26e9e807f80f9c219e0ef2c71834fe0af703d80 (diff) | |
download | zsh-d806649028f60ee2efc4aac187faf252e32ba1ef.tar.gz zsh-d806649028f60ee2efc4aac187faf252e32ba1ef.tar.bz2 zsh-d806649028f60ee2efc4aac187faf252e32ba1ef.zip |
feat(bundler): add completion for `info` argument (#9594)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/bundler/_bundler | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/bundler/_bundler b/plugins/bundler/_bundler index ba647ab80..51678dd7c 100644 --- a/plugins/bundler/_bundler +++ b/plugins/bundler/_bundler @@ -18,6 +18,7 @@ case $state in "check[Determine whether the requirements for your application are installed]" \ "list[Show all of the gems in the current bundle]" \ "show[Show the source location of a particular gem in the bundle]" \ + "info[Show details of a particular gem in the bundle]" \ "outdated[Show all of the outdated gems in the current bundle]" \ "console[Start an IRB session in the context of the current bundle]" \ "open[Open an installed gem in the editor]" \ @@ -84,7 +85,7 @@ case $state in '(--verbose)--verbose[Enable verbose output mode]' ret=0 ;; - (open|show) + (open|show|info) _gems=( $(bundle show 2> /dev/null | sed -e '/^ \*/!d; s/^ \* \([^ ]*\) .*/\1/') ) if [[ $_gems != "" ]]; then _values 'gems' $_gems && ret=0 |