feat(docker): add aliases for `docker ps` and `docker ps -a` (#12488)
Diff
1diff --git a/plugins/docker/README.md b/plugins/docker/README.md
2index 0ab2e41fb49f0599fdfeb3785617c7ec686da253..72ebbcb1e0f84d6110d463e14de11e480e68c1e2 100644
3--- a/plugins/docker/README.md
4+++ b/plugins/docker/README.md
5@@ -61,6 +61,8 @@ zstyle ':omz:plugins:docker' legacy-completion yes
6 | dnls | `docker network ls` | List all networks the engine daemon knows about, including those spanning multiple hosts |
7 | dnrm | `docker network rm` | Remove one or more networks |
8 | dpo | `docker container port` | List port mappings or a specific mapping for the container |
9+| dps | `docker ps` | List all the running docker containers |
10+| dpsa | `docker ps -a` | List all running and stopped containers |
11 | dpu | `docker pull` | Pull an image or a repository from a registry |
12 | dr | `docker container run` | Create a new container and start it using the specified command |
13 | drit | `docker container run -it` | Create a new container and start it in an interactive shell |
14diff --git a/plugins/docker/docker.plugin.zsh b/plugins/docker/docker.plugin.zsh
15index b429ae211b746a940fa2edb935e66220cbce5212..56dbc6b80018c9a395fb1fb5555d18641ad9b64b 100644
16--- a/plugins/docker/docker.plugin.zsh
17+++ b/plugins/docker/docker.plugin.zsh
18@@ -16,6 +16,8 @@ alias dni='docker network inspect'
19 alias dnls='docker network ls'
20 alias dnrm='docker network rm'
21 alias dpo='docker container port'
22+alias dps='docker ps'
23+alias dpsa='docker ps -a'
24 alias dpu='docker pull'
25 alias dr='docker container run'
26 alias drit='docker container run -it'