Browse code

Merge pull request #22452 from cpuguy83/fix_zsh_completion_psformat

Make zsh completion work when ps output is custom

Vincent Demeester authored on 2016/05/03 00:39:46
Showing 1 changed files
... ...
@@ -57,7 +57,7 @@ __docker_get_containers() {
57 57
     type=$1; shift
58 58
     [[ $kind = (stopped|all) ]] && args=($args -a)
59 59
 
60
-    lines=(${(f)"$(_call_program commands docker $docker_options ps --no-trunc $args)"})
60
+    lines=(${(f)"$(_call_program commands docker $docker_options ps --format 'table' --no-trunc $args)"})
61 61
 
62 62
     # Parse header line to find columns
63 63
     local i=1 j=1 k header=${lines[1]}