aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <17158086+Trumeet@users.noreply.github.com>2019-11-14 18:07:31 -0800
committerTrumeet <17158086+Trumeet@users.noreply.github.com>2019-11-14 18:07:31 -0800
commitb58d887bb994152cf5c752eec60471ae2c014dc6 (patch)
treea72452fe289a2f3e7da66de4e5526c0eb72b82d8
parent286acb8f7b2fc0dd97875fce1b9329b7dee1498b (diff)
downloaddotfiles-b58d887bb994152cf5c752eec60471ae2c014dc6.tar
dotfiles-b58d887bb994152cf5c752eec60471ae2c014dc6.tar.gz
dotfiles-b58d887bb994152cf5c752eec60471ae2c014dc6.tar.bz2
dotfiles-b58d887bb994152cf5c752eec60471ae2c014dc6.zip
feat(fish): add two pacman functions
-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