Support version command in Bash completion

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2015-06-03 13:25:26 -07:00
parent 417e8d80c3
commit be92b79b42
1 changed files with 10 additions and 0 deletions

View File

@ -302,6 +302,15 @@ _docker-compose_up() {
}
_docker-compose_version() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--short" -- "$cur" ) )
;;
esac
}
_docker-compose() {
local previous_extglob_setting=$(shopt -p extglob)
shopt -s extglob
@ -322,6 +331,7 @@ _docker-compose() {
start
stop
up
version
)
COMPREPLY=()