mirror of https://github.com/docker/compose.git
Fix bash completion on systems where extglob is not set
Signed-off-by: Brian de Alwis <bsd@mt.ca>
This commit is contained in:
parent
54afe3e1c0
commit
bb8c2e1f45
|
@ -16,6 +16,8 @@
|
|||
# below to your .bashrc after bash completion features are loaded
|
||||
# . ~/.docker-compose-completion.sh
|
||||
|
||||
__docker_compose_previous_extglob_setting=$(shopt -p extglob)
|
||||
shopt -s extglob
|
||||
|
||||
__docker_compose_q() {
|
||||
docker-compose 2>/dev/null "${top_level_options[@]}" "$@"
|
||||
|
@ -658,4 +660,7 @@ _docker_compose() {
|
|||
return 0
|
||||
}
|
||||
|
||||
eval "$__docker_compose_previous_extglob_setting"
|
||||
unset __docker_compose_previous_extglob_setting
|
||||
|
||||
complete -F _docker_compose docker-compose docker-compose.exe
|
||||
|
|
Loading…
Reference in New Issue