1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-23 21:01:58 +00:00

Merge pull request #3578 from ctroncoso/patch-1

docker containers based on defined names
This commit is contained in:
Robby Russell 2015-02-18 15:07:02 -08:00
commit 9a58e8dab7

View file

@ -11,7 +11,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 | awk 'NR>1{print $NF":[CON("$1")"$2"("$3")]"}'))
_describe 'containers' cont_cmd
}