mirror of
https://github.com/aljazceru/omakub.git
synced 2025-12-17 20:44:21 +01:00
Move Dev Editor installing to a submenu
Too many for the top level at this point!
This commit is contained in:
24
bin/omakub-sub/install-dev-editor.sh
Normal file
24
bin/omakub-sub/install-dev-editor.sh
Normal 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
|
||||
Reference in New Issue
Block a user