mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
parent
000b1b2db8
commit
e43932a121
1 changed files with 5 additions and 3 deletions
|
|
@ -10,9 +10,11 @@
|
||||||
# ----- Helper functions
|
# ----- Helper functions
|
||||||
# Output a selectable list of all running docker containers
|
# Output a selectable list of all running docker containers
|
||||||
__docker_containers() {
|
__docker_containers() {
|
||||||
declare -a cont_cmd
|
declare -a contid_cmd
|
||||||
cont_cmd=($(docker ps | awk 'NR>1{print $NF":[CON("$1")"$2"("$3")]"}'))
|
contid_cmd=($(docker ps | awk 'NR>1{print $1":[CON("$1")"$2"("$3")]"}'))
|
||||||
_describe 'containers' cont_cmd
|
cont_cmd=($(docker ps | awk 'NR>1{print $NF}'))
|
||||||
|
_describe 'containersID' contid_cmd
|
||||||
|
_describe 'containersNames' cont_cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
# output a selectable list of all docker images
|
# output a selectable list of all docker images
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue