From a1c5304a652c476420e31dc0545849f4bc99a269 Mon Sep 17 00:00:00 2001 From: Guilherme Henschel Date: Fri, 3 Jan 2025 09:32:13 -0300 Subject: [PATCH] feat(docker): add docker desktop aliases --- plugins/docker/README.md | 6 ++++++ plugins/docker/docker.plugin.zsh | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/plugins/docker/README.md b/plugins/docker/README.md index 8619125a2..c18e78f20 100644 --- a/plugins/docker/README.md +++ b/plugins/docker/README.md @@ -79,3 +79,9 @@ zstyle ':omz:plugins:docker' legacy-completion yes | dvprune | `docker volume prune` | Cleanup dangling volumes | | dxc | `docker container exec` | Run a new command in a running container | | dxcit | `docker container exec -it` | Run a new command in a running container in an interactive shell | +| ddeng | `docker desktop engine` | Commands to list and switch containers (Windows only) | +| ddres | `docker desktop restart` | Restart Docker Desktop | +| ddst | `docker desktop start` | Start Docker Desktop | +| ddsts | `docker desktop status` | Display Docker Desktop's status | +| ddstp | `docker desktop stop` | Stop Docker Desktop | +| ddver | `docker desktop version` | Show the Docker Desktop version information | diff --git a/plugins/docker/docker.plugin.zsh b/plugins/docker/docker.plugin.zsh index 16db77df6..d067a3f51 100644 --- a/plugins/docker/docker.plugin.zsh +++ b/plugins/docker/docker.plugin.zsh @@ -34,6 +34,13 @@ alias dvls='docker volume ls' alias dvprune='docker volume prune' alias dxc='docker container exec' alias dxcit='docker container exec -it' +alias ddeng='docker desktop engine' +alias ddres='docker desktop restart' +alias ddst='docker desktop start' +alias ddsts='docker desktop status' +alias ddstp='docker desktop stop' +alias ddver='docker desktop version' + if (( ! $+commands[docker] )); then return