Skip to content

Instantly share code, notes, and snippets.

@markruler
markruler / install_cursor.sh
Last active July 18, 2025 20:56 — forked from Kinyugo/install_cursor.sh
Cursor AI IDE Installer and Updater Script
#!/bin/bash
installCursor() {
local response=$(curl -s "https://www.cursor.com/api/download?platform=linux-x64&releaseTrack=stable")
local CURSOR_URL=$(echo "$response" | jq -r '.downloadUrl')
local ICON_URL="https://miro.medium.com/v2/resize:fit:700/1*YLg8VpqXaTyRHJoStnMuog.png"
local APPIMAGE_PATH="/opt/cursor.appimage"
local ICON_PATH="/opt/cursor.png"
local DESKTOP_ENTRY_PATH="/usr/share/applications/cursor.desktop"