mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 11:04:41 +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
|
||||
all)
|
||||
$0 docker
|
||||
$0 nix
|
||||
$0 pacman
|
||||
$0 yay
|
||||
;;
|
||||
docker)
|
||||
docker system prune --force
|
||||
;;
|
||||
nix)
|
||||
nix-collect-garbage --delete-old
|
||||
;;
|
||||
pacman)
|
||||
pacman -Sc --noconfirm
|
||||
;;
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue