mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 19:14:39 +02:00
18 lines
359 B
Bash
Executable file
18 lines
359 B
Bash
Executable file
#!/bin/bash
|
|
|
|
case "$1" in
|
|
all)
|
|
$0 docker
|
|
$0 pacman
|
|
;;
|
|
docker)
|
|
docker container ls --filter status=exited --format '{{.ID}}' | xargs -r docker container rm
|
|
docker image ls --filter dangling=true --format='{{.ID}}' | xargs -r docker image rm
|
|
;;
|
|
pacman)
|
|
pacman -Scc
|
|
;;
|
|
*)
|
|
echo "Please give parameter of: [all docker pacman]"
|
|
;;
|
|
esac
|