2025-07-18 17:43:01 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
2025-07-04 15:29:48 -07:00
|
|
|
# Exit immediately if a command exits with a non-zero status
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Give people a chance to retry running the installation
|
2025-07-18 17:33:51 -07:00
|
|
|
catch_errors() {
|
2025-07-18 17:44:18 -07:00
|
|
|
echo -e "\n\e[31mOmarchy installation failed!\e[0m"
|
2025-07-18 17:43:01 -07:00
|
|
|
echo "You can retry by running: bash ~/.local/share/omarchy/install.sh"
|
2025-07-18 17:17:42 -07:00
|
|
|
echo "Get help from the community: https://discord.gg/tXFUdasqhY"
|
2025-07-18 17:33:51 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
trap catch_errors ERR
|
2025-07-04 15:29:48 -07:00
|
|
|
|
2025-06-01 11:21:00 +02:00
|
|
|
# Install everything
|
2025-07-06 16:44:07 -07:00
|
|
|
for f in ~/.local/share/omarchy/install/*.sh; do
|
|
|
|
echo -e "\nRunning installer: $f"
|
|
|
|
source "$f"
|
|
|
|
done
|
2025-06-02 10:23:39 +02:00
|
|
|
|
2025-06-24 09:38:21 -07:00
|
|
|
# Ensure locate is up to date now that everything has been installed
|
|
|
|
sudo updatedb
|
|
|
|
|
2025-07-22 18:06:38 -04:00
|
|
|
# Update all built-in packages
|
|
|
|
sudo pacman -Syu --noconfirm
|
|
|
|
|
2025-06-02 10:39:26 +02:00
|
|
|
gum confirm "Reboot to apply all settings?" && reboot
|