aboutsummaryrefslogtreecommitdiff
path: root/fish/.config/fish/functions/cleanup.fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish/.config/fish/functions/cleanup.fish')
-rw-r--r--fish/.config/fish/functions/cleanup.fish7
1 files changed, 7 insertions, 0 deletions
diff --git a/fish/.config/fish/functions/cleanup.fish b/fish/.config/fish/functions/cleanup.fish
new file mode 100644
index 0000000..ca6b025
--- /dev/null
+++ b/fish/.config/fish/functions/cleanup.fish
@@ -0,0 +1,7 @@
+function cleanup --description "Remove unused dependencies"
+ if test -n (pacman -Qttdq)
+ echo "Nothing to do here."
+ else
+ sudo pacman -Rn (pacman -Qttdq)
+ end
+end