mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
feat: add filter functions for docker
This commit is contained in:
parent
fd8f72b276
commit
f6c06ebfc3
2 changed files with 52 additions and 37 deletions
|
|
@ -34,6 +34,18 @@ alias dvprune='docker volume prune'
|
|||
alias dxc='docker container exec'
|
||||
alias dxcit='docker container exec -it'
|
||||
|
||||
function dpsf {
|
||||
docker ps --filter "name=${1}"
|
||||
}
|
||||
|
||||
function dpsfa {
|
||||
docker ps --filter "name=${1}" -a
|
||||
}
|
||||
|
||||
function dif() {
|
||||
docker images --filter "reference=*${1}*"
|
||||
}
|
||||
|
||||
if (( ! $+commands[docker] )); then
|
||||
return
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue