* [PATCH] _zpool: fix option completion of subcommands
@ 2015-06-29 18:03 Eric Cook
0 siblings, 0 replies; only message in thread
From: Eric Cook @ 2015-06-29 18:03 UTC (permalink / raw)
To: zsh-workers
This seem to have been needed with oliver's previous fix.
% zpool create -<tab>
Completing no more arguments
Completing unknown zpool subcommand: zpool
---
Completion/Unix/Command/_zpool | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_zpool b/Completion/Unix/Command/_zpool
index 03ebd06..f2116dc 100644
--- a/Completion/Unix/Command/_zpool
+++ b/Completion/Unix/Command/_zpool
@@ -86,7 +86,7 @@ _zpool() {
)
if [[ $service == "zpool" ]]; then
- _arguments -C -A "-*" \
+ _arguments -C \
'-\?[show help information]' \
'1:subcommand:compadd -a subcmds' \
'*:: :->subcmd' && return
--
2.4.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-29 18:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-29 18:03 [PATCH] _zpool: fix option completion of subcommands Eric Cook
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).