Browse code

Merge pull request #23892 from sdurrheimer/zsh-completion-cpu-shares-c

Re-Add zsh completion for '-c' alias to '--cpu-shares'

Vincent Demeester authored on 2016/06/23 17:09:59
Showing 1 changed files
... ...
@@ -786,7 +786,7 @@ __docker_subcommand() {
786 786
         "($help)--userns=[Container user namespace]:user namespace:(host)"
787 787
     )
788 788
     opts_build_create_run_update=(
789
-        "($help)--cpu-shares=[CPU shares (relative weight)]:CPU shares:(0 10 100 200 500 800 1000)"
789
+        "($help -c --cpu-shares)"{-c=,--cpu-shares=}"[CPU shares (relative weight)]:CPU shares:(0 10 100 200 500 800 1000)"
790 790
         "($help)--cpu-period=[Limit the CPU CFS (Completely Fair Scheduler) period]:CPU period: "
791 791
         "($help)--cpu-quota=[Limit the CPU CFS (Completely Fair Scheduler) quota]:CPU quota: "
792 792
         "($help)--cpuset-cpus=[CPUs in which to allow execution]:CPUs: "