Make zsh completion work when ps output is custom
| ... | ... |
@@ -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]}
|