#!/bin/bash # ansi_art=' # /$$ /$$ /$$$$$$ /$$$$$$ # | $$ |__/ /$$__ $$ /$$__ $$ # /$$$$$$ | $$$$$$$ /$$| $$ \ $$| $$ \__/ # /$$__ $$| $$__ $$| $$| $$ | $$| $$$$$$ # | $$ \ $$| $$ \ $$| $$| $$ | $$ \____ $$ # | $$ | $$| $$ | $$| $$| $$ | $$ /$$ \ $$ # | $$$$$$/| $$$$$$$/| $$| $$$$$$/| $$$$$$/ # \______/ |_______/ |__/ \______/ \______/ # ' # clear # echo -e "\n$ansi_art\n" sudo pacman -Syu --noconfirm --needed git # Use custom repo if specified, otherwise default to basecamp/omarchy OMARCHY_REPO="${OMARCHY_REPO:-obitheway/omarchy}" echo -e "\nCloning Omarchy from: https://github.com/${OMARCHY_REPO}.git" rm -rf ~/.local/share/omarchy/ git clone "https://github.com/${OMARCHY_REPO}.git" ~/.local/share/omarchy >/dev/null # Use custom branch if instructed, otherwise default to master OMARCHY_REF="${OMARCHY_REF:-master}" if [[ $OMARCHY_REF != "master" ]]; then echo -e "\eUsing branch: $OMARCHY_REF" cd ~/.local/share/omarchy git fetch origin "${OMARCHY_REF}" && git checkout "${OMARCHY_REF}" cd - fi echo -e "\nInstallation starting..." source ~/.local/share/omarchy/install.sh