[O] Better clean-cache

This commit is contained in:
2024-08-24 00:49:05 -04:00
parent 6bec62a761
commit 253586baf9
+7 -5
View File
@@ -49,11 +49,13 @@ if [ -f "/etc/arch-release" ]; then
# Free up cache
clean-cache() {
yay -Sc --noconfirm
sudo pacman -Sc --noconfirm
yarn cache clean
conda clean -a
pip cache remove '*'
has yay && yay -Sc --noconfirm
has pacman && sudo pacman -Sc --noconfirm
has pacman && rm -rf /var/cache/pacman
has paru && rm -rf "$HOME/.cache/paru"
has yarn && yarn cache clean
has conda && conda clean -a
has pip && pip cache remove '*'
}
# Command-not-found install prompt