mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
65 lines
1.9 KiB
Bash
Executable File
65 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Read the manual if you have any questions while we install
|
|
setsid gtk-launch "Omarchy Manual" >/dev/null 2>&1 &
|
|
|
|
header() {
|
|
clear
|
|
gum style \
|
|
--foreground 212 --border-foreground 213 --border double --margin "1 0" --padding "1 3" \
|
|
"Welcome to Omarchy!"
|
|
}
|
|
|
|
header
|
|
|
|
if gum confirm "Install editor in addition to Neovim?"; then
|
|
options=("VSCode" "Cursor" "Zed" "Helix" "Nevermind")
|
|
choice=$(printf "%s\n" "${options[@]}" | gum choose --header "Add programming editor") || exit 0
|
|
|
|
case "$choice" in
|
|
VSCode) yay -Sy --noconfirm --needed vscodium-electron-bin ;;
|
|
Cursor) yay -Sy --noconfirm --needed cursor-bin ;;
|
|
Zed) yay -Sy --noconfirm --needed zed ;;
|
|
Helix) yay -Sy --noconfirm --needed helix ;;
|
|
Nevermind) ;;
|
|
esac
|
|
fi
|
|
|
|
header
|
|
|
|
if gum confirm "Setup Dropbox?"; then
|
|
gtk-launch chromium # FIXME: Workaround for Dropbox to be able to open with the correct scaling during initial setup
|
|
~/.local/share/omarchy/bin/omarchy-setup-dropbox
|
|
fi
|
|
|
|
header
|
|
|
|
if gum confirm "Login to GitHub?"; then
|
|
gh auth login
|
|
fi
|
|
|
|
header
|
|
|
|
if gum confirm "Start Docker DBs?"; then
|
|
options=("MySQL" "Redis" "PostgreSQL")
|
|
choices=$(printf "%s\n" "${options[@]}" | gum choose --no-limit --header "Select databases (space to select, return to install)") || exit 0
|
|
|
|
if [[ -n "$choices" ]]; then
|
|
for db in $choices; do
|
|
case $db in
|
|
MySQL) sudo docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mysql8 -e MYSQL_ROOT_PASSWORD= -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql:8.4 ;;
|
|
Redis) sudo docker run -d --restart unless-stopped -p "127.0.0.1:6379:6379" --name=redis redis:7 ;;
|
|
PostgreSQL) sudo docker run -d --restart unless-stopped -p "127.0.0.1:5432:5432" --name=postgres16 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:16 ;;
|
|
esac
|
|
done
|
|
fi
|
|
fi
|
|
|
|
header
|
|
|
|
echo "Updating all system packages..."
|
|
yay -Syu --noconfirm
|
|
|
|
gum spin --spinner "globe" --title "You're all set!" -- sleep 2
|
|
clear
|