mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 20:29:24 +00:00
33 lines
2.1 KiB
Bash
Executable File
33 lines
2.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
ansi_art=' ▄▄▄
|
|
▄█████▄ ▄███████████▄ ▄███████ ▄███████ ▄███████ ▄█ █▄ ▄█ █▄
|
|
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
|
|
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ █▀ ███ ███ ███ ███
|
|
███ ███ ███ ███ ███ ▄███▄▄▄███ ▄███▄▄▄██▀ ███ ▄███▄▄▄███▄ ███▄▄▄███
|
|
███ ███ ███ ███ ███ ▀███▀▀▀███ ▀███▀▀▀▀ ███ ▀▀███▀▀▀███ ▀▀▀▀▀▀███
|
|
███ ███ ███ ███ ███ ███ ███ ██████████ ███ █▄ ███ ███ ▄██ ███
|
|
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
|
|
▀█████▀ ▀█ ███ █▀ ███ █▀ ███ ███ ███████▀ ███ █▀ ▀█████▀
|
|
███ █▀ '
|
|
|
|
clear
|
|
echo -e "\n$ansi_art\n"
|
|
|
|
sudo pacman -Sy --noconfirm --needed git
|
|
|
|
echo -e "\nCloning Omarchy..."
|
|
rm -rf ~/.local/share/omarchy/
|
|
git clone https://github.com/basecamp/omarchy.git ~/.local/share/omarchy >/dev/null
|
|
|
|
# Use custom branch if instructed
|
|
if [[ -n "$OMARCHY_REF" ]]; 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
|