Browse Source

Merge pull request #5785 from g0t4/master

Fix docker-compose zsh running service name completion when using custom psFormat
Joffrey F 7 years ago
parent
commit
060d193168
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/completion/zsh/_docker-compose

+ 1 - 1
contrib/completion/zsh/_docker-compose

@@ -88,7 +88,7 @@ __docker-compose_get_services() {
     shift
     [[ $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)"})
 
     # Parse header line to find columns