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
cursorcommand 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://raw.githubusercontent.com/watzon/cursor-linux-installer/main/install.sh | bashwget -qO- https://raw.githubusercontent.com/watzon/cursor-linux-installer/main/install.sh | bashThe installation script will:
- Download the
cursor.shscript and save it ascursorin~/.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://raw.githubusercontent.com/watzon/cursor-linux-installer/main/uninstall.sh | bashor
wget -qO- https://raw.githubusercontent.com/watzon/cursor-linux-installer/main/uninstall.sh | bashThe uninstall script will:
- Remove the
cursorscript 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 ~/.bashrcThis 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.