mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
28 lines
2.2 KiB
Bash
28 lines
2.2 KiB
Bash
ascii_art=' ▄██████▄ ▄▄▄▄███▄▄▄▄ ▄████████ ▄████████ ▄████████ ▄█ █▄ ▄██ ▄
|
|
███ ███ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ██▄
|
|
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ █▀ ███ ███ ███▄▄▄███
|
|
███ ███ ███ ███ ███ ███ ███ ▄███▄▄▄▄██▀ ███ ▄███▄▄▄▄███▄▄ ▀▀▀▀▀▀███
|
|
███ ███ ███ ███ ███ ▀███████████ ▀▀███▀▀▀▀▀ ███ ▀▀███▀▀▀▀███▀ ▄██ ███
|
|
███ ███ ███ ███ ███ ███ ███ ▀███████████ ███ █▄ ███ ███ ███ ███
|
|
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
|
|
▀██████▀ ▀█ ███ █▀ ███ █▀ ███ ███ ████████▀ ███ █▀ ▀█████▀
|
|
███ ███ '
|
|
|
|
echo -e "$ascii_art"
|
|
echo "=> Omarchy is for fresh Arch installations only!"
|
|
echo -e "\nBegin installation (or abort with ctrl+c)..."
|
|
|
|
sudo pacman -Sy --noconfirm --needed git >/dev/null
|
|
|
|
echo "Cloning Omarchy..."
|
|
rm -rf ~/.local/share/omarchy/
|
|
git clone https://github.com/basecamp/omarchy.git ~/.local/share/omarchy >/dev/null
|
|
if [[ $OMARCHY_REF != "master" ]]; then
|
|
cd ~/.local/share/omarchy
|
|
git fetch origin "${OMARCHY_REF:-stable}" && git checkout "${OMARCHY_REF:-stable}"
|
|
cd -
|
|
fi
|
|
|
|
echo "Installation starting..."
|
|
source ~/.local/share/omarchy/install.sh
|