mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 19:14:39 +02:00
[bin/clean] add nix
This commit is contained in:
parent
9cb8af8db4
commit
1298592543
1 changed files with 7 additions and 3 deletions
10
bin/clean.sh
10
bin/clean.sh
|
@ -3,19 +3,23 @@
|
||||||
case "$1" in
|
case "$1" in
|
||||||
all)
|
all)
|
||||||
$0 docker
|
$0 docker
|
||||||
|
$0 nix
|
||||||
$0 pacman
|
$0 pacman
|
||||||
$0 yay
|
$0 yay
|
||||||
;;
|
;;
|
||||||
docker)
|
docker)
|
||||||
docker system prune --force
|
docker system prune --force
|
||||||
;;
|
;;
|
||||||
|
nix)
|
||||||
|
nix-collect-garbage --delete-old
|
||||||
|
;;
|
||||||
pacman)
|
pacman)
|
||||||
pacman -Sc --noconfirm
|
pacman -Sc --noconfirm
|
||||||
;;
|
;;
|
||||||
yay)
|
yay)
|
||||||
yay -Sacc --noconfirm
|
yay -Sacc --noconfirm
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Please give parameter of: [all docker pacman yay]"
|
echo "Please give parameter of: [all docker nix pacman yay]"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue