Files
omarchy/bin/omarchy-first-run-flow

58 lines
1.7 KiB
Plaintext
Raw Normal View History

2025-07-21 18:05:48 -04:00
#!/bin/bash
source ~/.local/share/omarchy/ansi.sh
if gum confirm "Install editor in addition to Neovim?"; then
options=("VSCode" "Cursor" "Zed" "Helix" "Nevermind")
2025-07-21 18:05:48 -04:00
choice=$(printf "%s\n" "${options[@]}" | gum choose --header "Add programming editor") || exit 0
case "$choice" in
VSCode) yay -Sy --noconfirm --needed vscodium-electron-bin ;;
2025-07-21 19:58:54 -04:00
Cursor) yay -Sy --noconfirm --needed cursor-bin ;;
2025-07-21 18:05:48 -04:00
Zed) yay -Sy --noconfirm --needed zed ;;
2025-07-21 19:58:54 -04:00
Helix) yay -Sy --noconfirm --needed helix ;;
2025-07-21 18:05:48 -04:00
Nevermind) ;;
esac
fi
2025-07-21 20:29:43 -04:00
source ~/.local/share/omarchy/ansi.sh
2025-07-21 18:05:48 -04:00
if gum confirm "Login to GitHub?"; then
2025-07-21 20:11:41 -04:00
gh auth login
2025-07-21 18:05:48 -04:00
fi
2025-07-21 20:29:43 -04:00
source ~/.local/share/omarchy/ansi.sh
2025-07-21 18:05:48 -04:00
if gum confirm "Setup Dropbox?"; then
omarchy-setup-dropbox
fi
2025-07-21 20:29:43 -04:00
source ~/.local/share/omarchy/ansi.sh
2025-07-21 18:05:48 -04:00
if gum confirm "Start Docker DBs?"; then
options=("MySQL" "Redis" "PostgreSQL")
2025-07-22 13:01:19 -04:00
choices=$(printf "%s\n" "${options[@]}" | gum choose --no-limit --header "Select databases (space to select, return to install)") || exit 0
2025-07-21 18:05:48 -04:00
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
2025-07-22 13:11:10 -04:00
clear
gtk-launch Docker
2025-07-21 18:05:48 -04:00
fi
2025-07-21 20:29:43 -04:00
echo "Updating all system packages..."
2025-07-22 13:02:01 -04:00
yay -Syu --noconfirm
2025-07-21 20:29:43 -04:00
source ~/.local/share/omarchy/ansi.sh
2025-07-21 18:05:48 -04:00
gum spin --spinner "globe" --title "You're all set!" -- sleep 2
2025-07-22 13:10:47 -04:00
gtk-launch "Omarchy Manual" >/dev/null 2>&1
2025-07-21 20:31:05 -04:00
clear