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
Hi @markruler,
The help and effort is very much appreciated, thank you so much!
I must also say that linking or making a commands that would run a code from your repo and putting it in this repo (which is not mine and I do not know a person who owns it) is not nice in one perspective, and not secure for the end user from other perspective. Many people will not check for the code they would run by using the command you have posted.
The correct way would be to fork a repo, make a change, create pull request to the original repo, and make a post once the code is merged.
I have nothing against you, I just want to point out the concern about security and author's feelings.
Hope you understand.