bash completion: fix uncorrect completion

fix uncorrect completion for command
docker docker <tab>

Signed-off-by: Ace-Tang <aceapril@126.com>
This commit is contained in:
Ace-Tang 2018-08-03 21:13:46 +08:00
parent e902ae9f84
commit 7b4e2f3145
1 changed files with 3 additions and 0 deletions

View File

@ -5117,6 +5117,9 @@ _docker() {
local counter=1
while [ "$counter" -lt "$cword" ]; do
case "${words[$counter]}" in
docker)
return 0
;;
# save host so that completion can use custom daemon
--host|-H)
(( counter++ ))