diff options
| author | Sergey Karpuk <sergeykarpuk@yandex.by> | 2024-06-11 02:31:26 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-10 16:31:26 -0700 |
| commit | a4304dd7e5826a2aeabb910a3966158897d55271 (patch) | |
| tree | ddb610d892ff72850c8a618a86c28f4037ad7d29 /plugins | |
| parent | 37f5203abe6b0f603172d86530f0e65029f4ac9c (diff) | |
| download | zsh-a4304dd7e5826a2aeabb910a3966158897d55271.tar.gz zsh-a4304dd7e5826a2aeabb910a3966158897d55271.tar.bz2 zsh-a4304dd7e5826a2aeabb910a3966158897d55271.zip | |
feat(docker): add aliases for `docker ps` and `docker ps -a` (#12488)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/docker/README.md | 2 | ||||
| -rw-r--r-- | plugins/docker/docker.plugin.zsh | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/docker/README.md b/plugins/docker/README.md index 0ab2e41fb..72ebbcb1e 100644 --- a/plugins/docker/README.md +++ b/plugins/docker/README.md @@ -61,6 +61,8 @@ zstyle ':omz:plugins:docker' legacy-completion yes | dnls | `docker network ls` | List all networks the engine daemon knows about, including those spanning multiple hosts | | dnrm | `docker network rm` | Remove one or more networks | | dpo | `docker container port` | List port mappings or a specific mapping for the container | +| dps | `docker ps` | List all the running docker containers | +| dpsa | `docker ps -a` | List all running and stopped containers | | dpu | `docker pull` | Pull an image or a repository from a registry | | dr | `docker container run` | Create a new container and start it using the specified command | | drit | `docker container run -it` | Create a new container and start it in an interactive shell | diff --git a/plugins/docker/docker.plugin.zsh b/plugins/docker/docker.plugin.zsh index b429ae211..56dbc6b80 100644 --- a/plugins/docker/docker.plugin.zsh +++ b/plugins/docker/docker.plugin.zsh @@ -16,6 +16,8 @@ alias dni='docker network inspect' alias dnls='docker network ls' alias dnrm='docker network rm' alias dpo='docker container port' +alias dps='docker ps' +alias dpsa='docker ps -a' alias dpu='docker pull' alias dr='docker container run' alias drit='docker container run -it' |
