mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Updated docker plugin to use Docker container names instead of hashes.
This commit is contained in:
parent
d485044169
commit
efc3085594
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@
|
|||
# Output a selectable list of all running docker containers
|
||||
__docker_containers() {
|
||||
declare -a cont_cmd
|
||||
cont_cmd=($(docker ps | awk 'NR>1{print $1":[CON("$1")"$2"("$3")]"}'))
|
||||
cont_cmd=($(docker ps -a | awk 'NR>1{split($NF,names,","); print names[1]":[CON("$1")"$2"("$3")("$NF")]"}'))
|
||||
_describe 'containers' cont_cmd
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue