Move Dev Editor installing to a submenu

Too many for the top level at this point!
This commit is contained in:
David Heinemeier Hansson
2025-04-04 11:03:24 +02:00
parent b9171897f1
commit 32bbbdc2e9
4 changed files with 34 additions and 9 deletions

View File

@@ -0,0 +1,24 @@
CHOICES=(
"Cursor AI Code Editor"
"Doom Emacs Emacs framework with curated list of packages"
"RubyMine IntelliJ's commercial Ruby editor"
"Windsurf Another AI Code Editor"
"Zed Fast all-purpose editor"
"<< Back "
)
CHOICE=$(gum choose "${CHOICES[@]}" --height 8 --header "Install editor")
if [[ "$CHOICE" == "<< Back"* ]] || [[ -z "$CHOICE" ]]; then
# Don't install anything
echo ""
else
INSTALLER=$(echo "$CHOICE" | awk -F ' {2,}' '{print $1}' | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
INSTALLER_FILE="$OMAKUB_PATH/install/desktop/optional/app-$INSTALLER.sh"
source $INSTALLER_FILE && gum spin --spinner globe --title "Install completed!" -- sleep 3
fi
clear
source $OMAKUB_PATH/bin/omakub-sub/header.sh
source $OMAKUB_PATH/bin/omakub-sub/install.sh