mirror of https://github.com/docker/compose.git
Merge pull request #5785 from g0t4/master
Fix docker-compose zsh running service name completion when using custom psFormat
This commit is contained in:
commit
060d193168
|
@ -88,7 +88,7 @@ __docker-compose_get_services() {
|
||||||
shift
|
shift
|
||||||
[[ $kind =~ (stopped|all) ]] && args=($args -a)
|
[[ $kind =~ (stopped|all) ]] && args=($args -a)
|
||||||
|
|
||||||
lines=(${(f)"$(_call_program commands docker $docker_options ps $args)"})
|
lines=(${(f)"$(_call_program commands docker $docker_options ps --format 'table' $args)"})
|
||||||
services=(${(f)"$(_call_program commands docker-compose 2>/dev/null $compose_options ps -q)"})
|
services=(${(f)"$(_call_program commands docker-compose 2>/dev/null $compose_options ps -q)"})
|
||||||
|
|
||||||
# Parse header line to find columns
|
# Parse header line to find columns
|
||||||
|
|
Loading…
Reference in New Issue