ArchSetupScripts/install.sh

37 lines
664 B
Bash
Executable File

#!/bin/bash
# TODO should be applicable to other package managers (dnf, apt, ..)
# v--- this is for potential future ideas
# flatpak uninstall $(flatpak list --columns=application | grep -i turtle)
# power management (install this first) https://github.com/FlyGoat/RyzenAdj
# power management (install this second) https://github.com/aarron-lee/SimpleDeckyTDP
main(){
if [[ "$(whoami)" != "root" ]];then
bash ./error.sh "Must be root (current: $USER)";
exit 1;
fi
_update_pac
bash ./dots.sh;
bash ./cli.sh;
bash ./non_pac.sh;
bash ./apps.sh;
bash ./post_setup.sh;
}
_update_pac(){
pacman -Fy --noconfirm
pacman -Syu --noconfirm
}
main;