dotfiles/bin/clean.sh

23 lines
300 B
Bash
Raw Normal View History

#!/bin/sh
2017-05-03 23:12:13 +02:00
case "$1" in
all)
$0 docker
$0 pacman
2019-05-03 23:01:59 +02:00
$0 yay
2017-05-03 23:12:13 +02:00
;;
docker)
docker container prune --force
docker image prune --force
2017-05-03 23:12:13 +02:00
;;
pacman)
pacman -Sc --noconfirm
2017-05-03 23:12:13 +02:00
;;
2019-05-03 23:01:59 +02:00
yay)
yay -Sacc --noconfirm
2019-05-03 23:01:59 +02:00
;;
2017-05-03 23:12:13 +02:00
*)
2019-12-11 20:35:52 +01:00
echo "Please give parameter of: [all docker pacman yay]"
2017-05-03 23:12:13 +02:00
;;
esac