Cleanup terminal after each step

This commit is contained in:
David Heinemeier Hansson
2025-07-21 20:29:43 -04:00
parent 377522f804
commit 84065dd767

View File

@ -16,14 +16,20 @@ if gum confirm "Install editor in addition to Neovim?"; then
esac esac
fi fi
source ~/.local/share/omarchy/ansi.sh
if gum confirm "Login to GitHub?"; then if gum confirm "Login to GitHub?"; then
gh auth login gh auth login
fi fi
source ~/.local/share/omarchy/ansi.sh
if gum confirm "Setup Dropbox?"; then if gum confirm "Setup Dropbox?"; then
omarchy-setup-dropbox omarchy-setup-dropbox
fi fi
source ~/.local/share/omarchy/ansi.sh
if gum confirm "Start Docker DBs?"; then if gum confirm "Start Docker DBs?"; then
options=("MySQL" "Redis" "PostgreSQL") options=("MySQL" "Redis" "PostgreSQL")
choices=$(printf "%s\n" "${options[@]}" | gum choose --no-limit --header "Select databases") || exit 0 choices=$(printf "%s\n" "${options[@]}" | gum choose --no-limit --header "Select databases") || exit 0
@ -39,5 +45,12 @@ if gum confirm "Start Docker DBs?"; then
fi fi
fi fi
source ~/.local/share/omarchy/ansi.sh
echo "Updating all system packages..."
yay -Syu
source ~/.local/share/omarchy/ansi.sh
gum spin --spinner "globe" --title "You're all set!" -- sleep 2 gum spin --spinner "globe" --title "You're all set!" -- sleep 2
setsid chromium --new-window --ozone-platform=wayland --app="https://manuals.omamix.org/2/the-omarchy-manual" >/dev/null 2>&1 & setsid chromium --new-window --ozone-platform=wayland --app="https://manuals.omamix.org/2/the-omarchy-manual" >/dev/null 2>&1 &