git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormail_redacted_for_web 2022-03-24 15:02:21 +0100
committermail_redacted_for_web 2022-03-24 15:02:21 +0100
commit1313e4f6e76c6f24ab75219f29aa4bf0466ae787 (patch)
tree7b1ff54ab5614bef12645586e5002fcb242aea70
parent9e6f65b8f71d2a4c24949a12ba12b701ca65cfa7 (diff)
downloaddotfiles-1313e4f6e76c6f24ab75219f29aa4bf0466ae787.tar.bz2
+package clean
-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'