aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fish/.config/fish/functions/cleanup.fish7
-rw-r--r--fish/.config/fish/functions/roll.fish3
2 files changed, 10 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
diff --git a/fish/.config/fish/functions/roll.fish b/fish/.config/fish/functions/roll.fish
new file mode 100644
index 0000000..451cd3b
--- /dev/null
+++ b/fish/.config/fish/functions/roll.fish
@@ -0,0 +1,3 @@
+function roll --description "Destruct the system"
+ sudo pacman -Syu
+end