Last active
December 14, 2025 08:22
-
-
Save Kinyugo/9845e18998744ff54b8f0cde3bb37182 to your computer and use it in GitHub Desktop.
Revisions
-
Kinyugo revised this gist
Jun 28, 2025 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,12 +33,16 @@ This script installs or updates the **Cursor AI IDE** on Linux systems. It downl ```bash chmod +x install_cursor.sh ``` 3. The automatic download feature is no longer working because Cursor has changed their download URL. 1. Go to the [cursor-ai-downloads](https://github.com/oslook/cursor-ai-downloads?tab=readme-ov-file) repository and copy the latest Cursor download link. 2. Replace the `CURSOR_URL` variable inside the `installCursor` function with the new link. 4. Run the script ```bash ./install_cursor.sh ``` 5. Restart your terminal or run the following command: ```bash source /path/to/terminal/config -
Kinyugo revised this gist
Feb 19, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ This script installs or updates the **Cursor AI IDE** on Linux systems. It downl sudo apt install libfuse2 ``` ## Instructions: 1. Copy the script into a file, e.g., `install_cursor.sh`. ```bash -
Kinyugo revised this gist
Feb 19, 2025 . 1 changed file with 19 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,24 +10,36 @@ This script installs or updates the **Cursor AI IDE** on Linux systems. It downl - Automatically detects the user's shell and modifies the appropriate configuration file. - Allows overwriting the existing installation for updates. ## Prerequisites: - Some users have reported crashes due to compatibility issues with other versions of `libfuse`. To prevent this, ensure you have `libfuse2` installed by running: ```bash sudo apt install libfuse2 ``` ## Installation Instructions: 1. Copy the script into a file, e.g., `install_cursor.sh`. ```bash curl https://gist.githubusercontent.com/Kinyugo/9845e18998744ff54b8f0cde3bb37182/raw/a9425582958c14f80acea08e51c49b1bf63840c7/install_cursor.sh ``` or ```bash wget https://gist.githubusercontent.com/Kinyugo/9845e18998744ff54b8f0cde3bb37182/raw/a9425582958c14f80acea08e51c49b1bf63840c7/install_cursor.sh ``` 2. Make the script executable: ```bash chmod +x install_cursor.sh ``` 3. Run the script ```bash ./install_cursor.sh ``` 4. Restart your terminal or run the following command: ```bash source /path/to/terminal/config ``` -
Kinyugo revised this gist
Feb 5, 2025 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,6 +12,13 @@ This script installs or updates the **Cursor AI IDE** on Linux systems. It downl ## Instructions: 1. Copy the script into a file, e.g., `install_cursor.sh`. ```bash curl https://gist.githubusercontent.com/Kinyugo/9845e18998744ff54b8f0cde3bb37182/raw/a9425582958c14f80acea08e51c49b1bf63840c7/install_cursor.sh ``` or ```bash wget https://gist.githubusercontent.com/Kinyugo/9845e18998744ff54b8f0cde3bb37182/raw/a9425582958c14f80acea08e51c49b1bf63840c7/install_cursor.sh ``` 2. Make the script executable: ```bash chmod +x install_cursor.sh -
Kinyugo created this gist
Jan 11, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,103 @@ #!/bin/bash installCursor() { local CURSOR_URL="https://downloader.cursor.sh/linux/appImage/x64" 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" echo "Checking for existing Cursor installation..." # Detect the user's shell local SHELL_NAME=$(basename "$SHELL") local RC_FILE="" case "$SHELL_NAME" in bash) RC_FILE="$HOME/.bashrc" ;; zsh) RC_FILE="$HOME/.zshrc" ;; fish) RC_FILE="$HOME/.config/fish/config.fish" ;; *) echo "Unsupported shell: $SHELL_NAME" echo "Please manually add the alias to your shell configuration file." return 1 ;; esac # Notify if updating an existing installation if [ -f "$APPIMAGE_PATH" ]; then echo "Cursor AI IDE is already installed. Updating existing installation..." else echo "Performing a fresh installation of Cursor AI IDE..." fi # Install curl if not installed if ! command -v curl &> /dev/null; then echo "curl is not installed. Installing..." sudo apt-get update sudo apt-get install -y curl || { echo "Failed to install curl."; exit 1; } fi # Download AppImage and Icon echo "Downloading Cursor AppImage..." curl -L "$CURSOR_URL" -o /tmp/cursor.appimage || { echo "Failed to download AppImage."; exit 1; } echo "Downloading Cursor icon..." curl -L "$ICON_URL" -o /tmp/cursor.png || { echo "Failed to download icon."; exit 1; } # Move to final destination echo "Installing Cursor files..." sudo mv /tmp/cursor.appimage "$APPIMAGE_PATH" sudo chmod +x "$APPIMAGE_PATH" sudo mv /tmp/cursor.png "$ICON_PATH" # Create a .desktop entry echo "Creating .desktop entry..." sudo bash -c "cat > $DESKTOP_ENTRY_PATH" <<EOL [Desktop Entry] Name=Cursor AI IDE Exec=$APPIMAGE_PATH --no-sandbox Icon=$ICON_PATH Type=Application Categories=Development; EOL # Add alias to the appropriate RC file echo "Adding cursor alias to $RC_FILE..." if [ "$SHELL_NAME" = "fish" ]; then # Fish shell uses a different syntax for functions if ! grep -q "function cursor" "$RC_FILE"; then echo "function cursor" >> "$RC_FILE" echo " /opt/cursor.appimage --no-sandbox \$argv > /dev/null 2>&1 & disown" >> "$RC_FILE" echo "end" >> "$RC_FILE" else echo "Alias already exists in $RC_FILE." fi else if ! grep -q "function cursor" "$RC_FILE"; then cat >> "$RC_FILE" <<EOL # Cursor alias function cursor() { /opt/cursor.appimage --no-sandbox "\${@}" > /dev/null 2>&1 & disown } EOL else echo "Alias already exists in $RC_FILE." fi fi # Inform the user to reload the shell echo "To apply changes, please restart your terminal or run the following command:" echo " source $RC_FILE" echo "Cursor AI IDE installation or update complete. You can find it in your application menu." } installCursor This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ # Cursor AI IDE Installer and Updater Script ## Description: 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. ## Features: - 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. ## Instructions: 1. Copy the script into a file, e.g., `install_cursor.sh`. 2. Make the script executable: ```bash chmod +x install_cursor.sh ``` 3. Run the script ```bash ./install_cursor.sh ``` 4. Restart your terminal or run the following command: ```bash source /path/to/terminal/config ```