feat: cursor shim for ~/.local/bin/cursor#20
Open
ZanzyTHEbar wants to merge 35 commits intowatzon:mainfrom
Open
feat: cursor shim for ~/.local/bin/cursor#20ZanzyTHEbar wants to merge 35 commits intowatzon:mainfrom
ZanzyTHEbar wants to merge 35 commits intowatzon:mainfrom
Conversation
- Cursor changed their download link behaviour and now how a dynamic HTML page. These changes use HTML scraping instead of jq to grab the download link - Refactor download info retrieval in cursor.shfix:
- temporary switch to point to my cursor installer script
- Updated FUSE installation checks and improved error handling. - Enhanced architecture verification for the Cursor AppImage and added safeguards for execution permissions. - Ensured that the right binary version is downloaded
- revert to offcial link for pr
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ZanzyTHEbar <45744329+ZanzyTHEbar@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Merge pull request #2 from ZanzyTHEbar/copilot/fix-xdg-open-support
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…on for personal testing and usage
… for improved readability
…operation - Introduced INSTALL_MODE variable to toggle between AppImage and extracted modes. - Implemented functions to handle extracted installations, including downloading, extracting, and creating launcher scripts. - Updated installation and README scripts to support the new mode, enhancing usability for environments without FUSE support.
- Added interactive checks for FUSE installation, providing warnings and installation prompts based on terminal interactivity. - Updated README to inform users about FUSE2 requirements and installation instructions. - Refined error handling to ensure the script continues gracefully in non-interactive environments.
- Introduced color-coded logging functions in cursor.sh and install.sh for improved user experience. - Updated installation and uninstallation scripts to utilize logging functions for better visibility of actions and errors. - Refined README to reflect changes in installation methods and provide clearer instructions for users. - Added pre-push hook and CI workflow to enforce canonical links and maintain repository integrity.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…bort the script. Guard the find with a directory check and neutralize non-zero status in uninstall.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…der set -e and can terminate the script. Add a directory existence check or tolerate non-zero exit Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Updated icon removal logic to delete all 'cursor' and legacy 'co.anysphere.cursor' icons under the hicolor theme. - Added cleanup for now-empty directories in the icon path. - Included a step to refresh the desktop database for improved menu visibility. - Implemented removal of extracted installation directories and related metadata.
…nstaller into personal
Merge latest changes from personal into main
…rective, causing it to fail silently - Add desktop file reinstallation functionality - Introduced a new function to reinstall the Cursor desktop file, allowing users to refresh the desktop entry easily. - Updated the Exec command in the desktop file to remove quotes for better compatibility. - Enhanced error handling for missing desktop files and added logic to create a minimal desktop entry if extraction fails. - Ensured the desktop file is updated with the correct icon and MIME type support. - Added a new command-line option `--reinstall-desktop` for triggering the reinstallation process.
…rective Merge pull request #4 from ZanzyTHEbar/personal
Merge pull request #5 from ZanzyTHEbar/personal
Rename the installer CLI to cursor-installer and update docs. Source shared lib.sh in scripts and install it alongside the CLI.
Move safe_remove and validate_path into lib.sh and reuse them where installer-managed files are removed.
Move find_cursor_appimage into lib.sh and reuse it in installer and uninstall scripts.
- shim.sh: ~/.local/bin/cursor shim that finds real cursor or delegates to cursor-installer - scripts/ensure-shim.sh: detect existing shim, skip if already current, else install/update - install.sh: sync shim + ensure-shim, run helper after placing CLI - cursor.sh: refresh shim assets from GitHub on update; ensure_shim before install
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 characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional
cursorshim that delegates tocursor-installerwhen no Cursor binary is in PATH.~/.local/bin/cursor; finds realcursorin PATH, else runscursor agentorcursor-installerwith args.~/.local/share/cursor-installer, runs ensure-shim after placing CLI.--update; runs ensure-shim before install/update.Guards: only replace
~/.local/bin/cursorwhen it is already a shim (shebang + marker) or missing.