summaryrefslogtreecommitdiff
path: root/clean-cache.sh
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-09-25 17:48:02 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-09-25 17:48:02 +0800
commit4d4ab38c4e438b90bcd63c320c87f5c0587854c4 (patch)
tree576f27ac4a7d52f22bcc8857f436bcec5bdbb4b4 /clean-cache.sh
parent67048cfd54f30948c97b4d0d9876e89eaef99024 (diff)
init clean cache script
Diffstat (limited to 'clean-cache.sh')
-rw-r--r--clean-cache.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/clean-cache.sh b/clean-cache.sh
new file mode 100644
index 0000000..b912367
--- /dev/null
+++ b/clean-cache.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# YARN
+yarn cache clean || sudo yarn cache clean
+
+# PIP
+pip cache purge || sudo pip cache purge
+
+# NPM
+npm cache clean --force || sudo npm cache clean --force
+
+# pacman
+sudo pacman -Scc --noconfirm