Merge pull request #379 from alanmaciel/cursor-ai-editor

Cursor AI editor
This commit is contained in:
David Heinemeier Hansson
2025-02-04 14:54:57 +01:00
committed by GitHub
4 changed files with 29 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@@ -4,6 +4,7 @@ CHOICES=(
"1password Manage your passwords securely across devices" "1password Manage your passwords securely across devices"
"Audacity Record and edit audio" "Audacity Record and edit audio"
"Brave Chrome-based browser with built-in ad blocking" "Brave Chrome-based browser with built-in ad blocking"
"Cursor The AI Code Editor"
"Doom Emacs Emacs framework with curated list of packages" "Doom Emacs Emacs framework with curated list of packages"
"Dropbox Sync files across computers with ease" "Dropbox Sync files across computers with ease"
"OBS Studio Record screencasts with inputs from both display + webcam" "OBS Studio Record screencasts with inputs from both display + webcam"

View File

@@ -0,0 +1,25 @@
cd /tmp
curl -L --output cursor.appimage https://downloader.cursor.sh/linux/x64
sudo mv cursor.appimage /opt/cursor.appimage
sudo chmod +x /opt/cursor.appimage
sudo apt install -y fuse3
sudo apt install -y libfuse2t64
DESKTOP_FILE="/usr/share/applications/cursor.desktop"
sudo bash -c "cat > $DESKTOP_FILE" <<EOL
[Desktop Entry]
Name=Cursor
Comment=AI-powered code editor
Exec=/opt/cursor.appimage --no-sandbox
Icon=/home/$USER/.local/share/omakub/applications/icons/cursor.png
Type=Application
Categories=Development;IDE;
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
View File

@@ -0,0 +1,3 @@
sudo rm /opt/cursor.appimage
sudo rm /usr/share/applications/cursor.desktop