This script installs or updates the Cursor AI IDE on Linux systems. It downloads the AppImage, sets up an application menu entry, and adds a shell alias (cursor
) for easy usage. The script supports multiple shells (bash
, zsh
, fish
) and gracefully handles updates.
- Downloads and installs the Cursor AI IDE AppImage and icon.
- Adds a
.desktop
entry for the system's application menu. - Configures an alias for quick access (
cursor
). - Automatically detects the user's shell and modifies the appropriate configuration file.
- Allows overwriting the existing installation for updates.
-
Some users have reported crashes due to compatibility issues with other versions of
libfuse
. To prevent this, ensure you havelibfuse2
installed by running:sudo apt install libfuse2
-
Copy the script into a file, e.g.,
install_cursor.sh
.curl https://gist.githubusercontent.com/Kinyugo/9845e18998744ff54b8f0cde3bb37182/raw/a9425582958c14f80acea08e51c49b1bf63840c7/install_cursor.sh
or
wget https://gist.githubusercontent.com/Kinyugo/9845e18998744ff54b8f0cde3bb37182/raw/a9425582958c14f80acea08e51c49b1bf63840c7/install_cursor.sh
-
Make the script executable:
chmod +x install_cursor.sh
-
The automatic download feature is no longer working because Cursor has changed their download URL.
- Go to the cursor-ai-downloads repository and copy the latest Cursor download link.
- Replace the
CURSOR_URL
variable inside theinstallCursor
function with the new link.
-
Run the script
./install_cursor.sh
-
Restart your terminal or run the following command:
source /path/to/terminal/config
Thanks man