瀏覽代碼

Add zsh completion for 'docker build' multi tags

+ Fix some others multi options

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Steve Durrheimer 9 年之前
父節點
當前提交
cc77fc3cb2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      contrib/completion/zsh/_docker

+ 1 - 1
contrib/completion/zsh/_docker

@@ -467,7 +467,7 @@ __docker_subcommand() {
                 "($help)--pull[Attempt to pull a newer version of the image]" \
                 "($help)--pull[Attempt to pull a newer version of the image]" \
                 "($help -q --quiet)"{-q,--quiet}"[Suppress verbose build output]" \
                 "($help -q --quiet)"{-q,--quiet}"[Suppress verbose build output]" \
                 "($help)--rm[Remove intermediate containers after a successful build]" \
                 "($help)--rm[Remove intermediate containers after a successful build]" \
-                "($help -t --tag)"{-t,--tag=}"[Repository, name and tag for the image]: :__docker_repositories_with_tags" \
+                "($help -t --tag)*"{-t,--tag=}"[Repository, name and tag for the image]: :__docker_repositories_with_tags" \
                 "($help -):path or URL:_directories" && ret=0
                 "($help -):path or URL:_directories" && ret=0
             ;;
             ;;
         (commit)
         (commit)