Browse Source

Merge pull request #22452 from cpuguy83/fix_zsh_completion_psformat

Make zsh completion work when ps output is custom
Vincent Demeester 9 years ago
parent
commit
2a6980c5cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/completion/zsh/_docker

+ 1 - 1
contrib/completion/zsh/_docker

@@ -57,7 +57,7 @@ __docker_get_containers() {
     type=$1; shift
     [[ $kind = (stopped|all) ]] && args=($args -a)
 
-    lines=(${(f)"$(_call_program commands docker $docker_options ps --no-trunc $args)"})
+    lines=(${(f)"$(_call_program commands docker $docker_options ps --format 'table' --no-trunc $args)"})
 
     # Parse header line to find columns
     local i=1 j=1 k header=${lines[1]}