git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bash/aliases.bash12
1 files changed, 12 insertions, 0 deletions
diff --git a/.bash/aliases.bash b/.bash/aliases.bash
index c7954e9..2d71298 100644
--- a/.bash/aliases.bash
+++ b/.bash/aliases.bash
@@ -75,6 +75,18 @@ xstat() {
printf "%s\t%s\n" "${crtime}" "${target}"
done
}
+# ----- PACKAGE MANAGERS ----- #
+if [ -x "/usr/bin/pikaur" ];then
+ alias pkgclean="pikaur --no-confirm -Sc"
+elif [ -x "/usr/bin/pacman" ];then
+ alias pkgclean="/usr/bin/sudo /usr/bin/pacman --no-confirm -Sc"
+elif [ -x "/usr/bin/apt" ];then
+ alias pkgclean="/usr/bin/sudo apt clean"
+elif [ -x "/usr/bin/dnf" ];then
+ alias pkgclean="/usr/bin/sudo /usr/bin/dnf clean packages"
+elif [ -x "/usr/bin/zypper" ];then
+ alias pkgclean="/usr/bin/sudo /usr/bin/zypper clean"
+fi
# ----- GRAFANA ----- #
if command -v grafana-cli >/dev/null;then
alias gfpi='sudo grafana-cli plugins install'