mirror of https://github.com/docker/docs.git
Merge pull request #6922 from tianon/bash-complete-build-directories
Update bash completion to only complete on directories as the argument to "docker build"
This commit is contained in:
commit
439d7ea701
|
@ -156,7 +156,7 @@ _docker_build()
|
||||||
*)
|
*)
|
||||||
local counter="$(__docker_pos_first_nonflag '-t|--tag')"
|
local counter="$(__docker_pos_first_nonflag '-t|--tag')"
|
||||||
if [ $cword -eq $counter ]; then
|
if [ $cword -eq $counter ]; then
|
||||||
_filedir
|
_filedir -d
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue