Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] _zpool: fix option completion of subcommands



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



Messages sorted by: Reverse Date, Date, Thread, Author