aboutsummaryrefslogtreecommitdiff
path: root/autocompletes/_docker_containers
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2021-11-10 14:09:24 -0700
committerCody Hiar <cody@hiar.ca>2021-11-10 14:09:24 -0700
commit1d208e292b66b9bc4e39c3b29716559f8c1f9a3f (patch)
tree8a1de83d75879d4ea36905bba1451cbea620785e /autocompletes/_docker_containers
Initial Commit
Diffstat (limited to 'autocompletes/_docker_containers')
-rw-r--r--autocompletes/_docker_containers5
1 files changed, 5 insertions, 0 deletions
diff --git a/autocompletes/_docker_containers b/autocompletes/_docker_containers
new file mode 100644
index 0000000..d335b69
--- /dev/null
+++ b/autocompletes/_docker_containers
@@ -0,0 +1,5 @@
+#compdef docker_containers
+
+local -a options
+options=$(docker ps --format "{{.Names}}")
+_alternative "args:docker containers:($options)"