From 2c209fd7a097c6010a9a73fe3713bfba980f30fe Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Mon, 10 Jun 2024 06:59:23 +0200 Subject: [PATCH] added clean command --- pman.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pman.sh b/pman.sh index ec5b4a9..43e7e7d 100755 --- a/pman.sh +++ b/pman.sh @@ -94,6 +94,12 @@ case "$command_args" in su_needed=true fi ;; + "clean") + command_args="-Scc" + if [ "$command" = "pacman" ]; then + su_needed=true + fi + ;; *) if [ "$more_arguments" = "true" ]; then echo "Invalid command: \"$command $command_args\"" @@ -112,6 +118,7 @@ case "$command_args" in echo " upgrade - pacman -Syu | upgrades your system" echo " remove - pacman -Rs | remove packages & dependencies" echo " purge - pacman -Rns | remove packages, dependencies & conf" + echo " clean - pacman -Scc | remove all package files & trash" echo " config - /etc/pacman.conf | edits pacman configuration" exit 1 fi