From 1313e4f6e76c6f24ab75219f29aa4bf0466ae787 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Thu, 24 Mar 2022 15:02:21 +0100 Subject: +package clean --- .bash/aliases.bash | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.bash') 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' -- cgit v1.2.3