Files
omakub/bin/omakub-sub/install-dev-editor.sh
David Heinemeier Hansson 32bbbdc2e9 Move Dev Editor installing to a submenu
Too many for the top level at this point!
2025-04-04 11:03:24 +02:00

25 lines
841 B
Bash

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