Skip to content

shirokano/cursor-install-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Cursor AI IDE Installer for Linux

This repository contains an automated installation and update script for Cursor AI IDE on Linux systems. The script handles both fresh installations and updates of the Cursor AI IDE AppImage.

Features

  • 🚀 One-command installation and updates
  • 🔄 Automatic version management
  • 🖥️ Desktop integration with application menu
  • 🛠️ Shell integration with convenient cursor command
  • 📦 Dependency management
  • 🔒 Safe update process with running instance detection

Prerequisites

  • Linux operating system
  • curl (will be automatically installed if missing)
  • sudo privileges

Installation

  1. Download the installation script:
curl -O https://raw.githubusercontent.com/your-username/cursor-install-script/main/cursor-install.sh
  1. Make the script executable:
chmod +x cursor-install.sh
  1. Run the script:
./cursor-install.sh

What the Script Does

  1. Checks Dependencies: Ensures required tools are installed
  2. Fetches Latest Version: Queries Cursor's API for the latest stable version
  3. Installs/Updates AppImage: Downloads and sets up the Cursor AppImage in /opt/cursor/
  4. Creates Desktop Entry: Adds Cursor to your application menu
  5. Shell Integration: Adds a cursor command to your shell configuration
  6. Version Management: Handles updates when a new version is available

Usage

After installation, you can launch Cursor AI IDE in two ways:

  1. From the application menu (search for "Cursor AI IDE")
  2. From the terminal:
    cursor [path]
    • Running cursor without arguments opens Cursor with the current directory
    • Running cursor path/to/directory opens Cursor with the specified directory

Automatic Updates

To check for and install updates, simply run the script again:

./cursor-install.sh

The script will:

  • Check your current version against the latest available version
  • Update only if a newer version is available
  • Prevent updates while Cursor is running to ensure data safety

File Locations

  • AppImage: /opt/cursor/cursor.AppImage
  • Icon: /opt/cursor/cursor.png
  • Desktop Entry: /usr/share/applications/cursor.desktop
  • Shell Function: Added to your shell's RC file (~/.bashrc or ~/.zshrc)

Troubleshooting

  1. Cursor won't update: Ensure all Cursor instances are closed before updating
  2. Command not found: Restart your terminal or run source ~/.bashrc (or ~/.zshrc)
  3. Permission denied: Ensure the script has execute permissions (chmod +x)

Contributing

Feel free to submit issues and enhancement requests!

About

Cursor IDE installation script for Ubuntu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages