diff options
author | Trumeet <17158086+Trumeet@users.noreply.github.com> | 2019-11-14 18:07:31 -0800 |
---|---|---|
committer | Trumeet <17158086+Trumeet@users.noreply.github.com> | 2019-11-14 18:07:31 -0800 |
commit | b58d887bb994152cf5c752eec60471ae2c014dc6 (patch) | |
tree | a72452fe289a2f3e7da66de4e5526c0eb72b82d8 | |
parent | 286acb8f7b2fc0dd97875fce1b9329b7dee1498b (diff) | |
download | dotfiles-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.fish | 7 | ||||
-rw-r--r-- | fish/.config/fish/functions/roll.fish | 3 |
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 |