[O] Better clean-cache
This commit is contained in:
@@ -49,11 +49,13 @@ if [ -f "/etc/arch-release" ]; then
|
|||||||
|
|
||||||
# Free up cache
|
# Free up cache
|
||||||
clean-cache() {
|
clean-cache() {
|
||||||
yay -Sc --noconfirm
|
has yay && yay -Sc --noconfirm
|
||||||
sudo pacman -Sc --noconfirm
|
has pacman && sudo pacman -Sc --noconfirm
|
||||||
yarn cache clean
|
has pacman && rm -rf /var/cache/pacman
|
||||||
conda clean -a
|
has paru && rm -rf "$HOME/.cache/paru"
|
||||||
pip cache remove '*'
|
has yarn && yarn cache clean
|
||||||
|
has conda && conda clean -a
|
||||||
|
has pip && pip cache remove '*'
|
||||||
}
|
}
|
||||||
|
|
||||||
# Command-not-found install prompt
|
# Command-not-found install prompt
|
||||||
|
|||||||
Reference in New Issue
Block a user