mirror of
https://github.com/aljazceru/omakub.git
synced 2026-01-31 18:04:23 +01:00
Add Cursor The AI Code Editor
This commit is contained in:
@@ -1,46 +1,47 @@
|
||||
CHOICES=(
|
||||
"Dev Language Install programming language environment"
|
||||
"Dev Database Install development database in Docker"
|
||||
"1password Manage your passwords securely across devices"
|
||||
"Audacity Record and edit audio"
|
||||
"Brave Chrome-based browser with built-in ad blocking"
|
||||
"Doom Emacs Emacs framework with curated list of packages"
|
||||
"Dropbox Sync files across computers with ease"
|
||||
"OBS Studio Record screencasts with inputs from both display + webcam"
|
||||
"Ollama Run LLMs, like Meta's Llama3, locally"
|
||||
"RubyMine IntelliJ's commercial Ruby editor"
|
||||
"Spotify Stream music from the world's most popular service"
|
||||
"Steam Play games from Valve's store"
|
||||
"VirtualBox Virtual machines to run Windows/Linux"
|
||||
"Zed Fast all-purpose editor"
|
||||
"Zoom Attend and host video chat meetings"
|
||||
"> All Re-run any of the default installers"
|
||||
"<< Back "
|
||||
"Dev Language Install programming language environment"
|
||||
"Dev Database Install development database in Docker"
|
||||
"1password Manage your passwords securely across devices"
|
||||
"Audacity Record and edit audio"
|
||||
"Brave Chrome-based browser with built-in ad blocking"
|
||||
"Cursor The AI Code Editor"
|
||||
"Doom Emacs Emacs framework with curated list of packages"
|
||||
"Dropbox Sync files across computers with ease"
|
||||
"OBS Studio Record screencasts with inputs from both display + webcam"
|
||||
"Ollama Run LLMs, like Meta's Llama3, locally"
|
||||
"RubyMine IntelliJ's commercial Ruby editor"
|
||||
"Spotify Stream music from the world's most popular service"
|
||||
"Steam Play games from Valve's store"
|
||||
"VirtualBox Virtual machines to run Windows/Linux"
|
||||
"Zed Fast all-purpose editor"
|
||||
"Zoom Attend and host video chat meetings"
|
||||
"> All Re-run any of the default installers"
|
||||
"<< Back "
|
||||
)
|
||||
|
||||
CHOICE=$(gum choose "${CHOICES[@]}" --height 19 --header "Install application")
|
||||
|
||||
if [[ "$CHOICE" == "<< Back"* ]] || [[ -z "$CHOICE" ]]; then
|
||||
# Don't install anything
|
||||
echo ""
|
||||
# Don't install anything
|
||||
echo ""
|
||||
elif [[ "$CHOICE" == "> All"* ]]; then
|
||||
INSTALLER_FILE=$(gum file $OMAKUB_PATH/install)
|
||||
INSTALLER_FILE=$(gum file $OMAKUB_PATH/install)
|
||||
|
||||
[[ -n "$INSTALLER_FILE" ]] &&
|
||||
gum confirm "Run installer?" &&
|
||||
source $INSTALLER_FILE &&
|
||||
gum spin --spinner globe --title "Install completed!" -- sleep 3
|
||||
[[ -n "$INSTALLER_FILE" ]] &&
|
||||
gum confirm "Run installer?" &&
|
||||
source $INSTALLER_FILE &&
|
||||
gum spin --spinner globe --title "Install completed!" -- sleep 3
|
||||
else
|
||||
INSTALLER=$(echo "$CHOICE" | awk -F ' {2,}' '{print $1}' | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
|
||||
INSTALLER=$(echo "$CHOICE" | awk -F ' {2,}' '{print $1}' | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
|
||||
|
||||
case "$INSTALLER" in
|
||||
"dev-language") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-language.sh" ;;
|
||||
"dev-database") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-storage.sh" ;;
|
||||
"ollama") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/optional/app-ollama.sh" ;;
|
||||
*) INSTALLER_FILE="$OMAKUB_PATH/install/desktop/optional/app-$INSTALLER.sh" ;;
|
||||
esac
|
||||
case "$INSTALLER" in
|
||||
"dev-language") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-language.sh" ;;
|
||||
"dev-database") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/select-dev-storage.sh" ;;
|
||||
"ollama") INSTALLER_FILE="$OMAKUB_PATH/install/terminal/optional/app-ollama.sh" ;;
|
||||
*) INSTALLER_FILE="$OMAKUB_PATH/install/desktop/optional/app-$INSTALLER.sh" ;;
|
||||
esac
|
||||
|
||||
source $INSTALLER_FILE && gum spin --spinner globe --title "Install completed!" -- sleep 3
|
||||
source $INSTALLER_FILE && gum spin --spinner globe --title "Install completed!" -- sleep 3
|
||||
fi
|
||||
|
||||
clear
|
||||
|
||||
22
install/desktop/optional/app-cursor.sh
Normal file
22
install/desktop/optional/app-cursor.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
cd /tmp
|
||||
curl -L o cursor.appimage https://downloader.cursor.sh/linux/appImage/x64
|
||||
sudo mv cursor.appimage /opt/cursor.appimage
|
||||
sudo chmod +x /opt/cursor.appimage
|
||||
sudo apt install -y fuse
|
||||
|
||||
DESKTOP_FILE="/usr/share/applications/cursor.desktop"
|
||||
|
||||
sudo bash -c "cat > $DESKTOP_FILE" <<EOL
|
||||
[Desktop Entry]
|
||||
Name=Cursor
|
||||
Exec=/opt/cursor.appimage --no-sandbox
|
||||
Icon=/opt/cursor.png
|
||||
Type=Application
|
||||
Categories=Development;
|
||||
EOL
|
||||
|
||||
if [ -f "$DESKTOP_FILE" ]; then
|
||||
echo "cursor.desktop created successfully"
|
||||
else
|
||||
echo "Failed to create cursor.desktop"
|
||||
fi
|
||||
3
uninstall/app-cursor.sh
Normal file
3
uninstall/app-cursor.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
sudo apt remove fuse
|
||||
sudo rm /opt/cursor.appimage
|
||||
sudo rm /usr/share/applications/cursor.desktop
|
||||
Reference in New Issue
Block a user