feat(zsh): add some scripts and aliases

This commit is contained in:
2023-06-16 17:23:38 +02:00
parent 60a32a46bd
commit bd8ff47bf2
2 changed files with 11 additions and 3 deletions

View File

@@ -80,3 +80,12 @@ function lh {
open "http://localhost:$PORT"
}
function dps {
if [[ -z $1 ]]; then
docker ps --format table'{{ .ID }}\t{{ .Image }}\t{{ .Ports}}\t{{ .Names }}'
else
docker ps --format table'{{ .ID }}\t{{ .Image }}\t{{ .Ports}}\t{{ .Names }}' | grep $1
fi
}