We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb56b8 commit 87aa070Copy full SHA for 87aa070
lib/clean.sh
@@ -0,0 +1,9 @@
1
+source $lib_dir/helper_functions.sh
2
+
3
+DefineDistro
4
5
+if [[ $distro == "arch" ]]; then
6
+ sudo pacman -Rns --noconfirm $(pacman -Qdtq)
7
+elif [[ $distro == "debian" ]]; then
8
+ sudo apt-get autoremove --purge -y
9
+fi
lib/main.sh
@@ -8,6 +8,7 @@ Usage:
Options:
10
apply Apply the configuration from ~/.config/setuper/
11
+ clean Clean unused packages
12
"
13
else
14
readonly lib_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
@@ -21,6 +22,9 @@ else
21
22
apply)
23
source $lib_dir/apply.sh
24
;;
25
+ clean)
26
+ source $lib_dir/clean.sh
27
+ ;;
28
*)
29
echo "Invalid option"
30
0 commit comments