How to Enable Command Line Access to Cursor AppImage

# --- Cursor CLI wrapper -----------------------------------
cursor() {
    APP="$HOME/AppImages/cursor.appimage"   # << change if needed
    [ -x "$APP" ] || { echo "Cursor AppImage not found"; return 1; }
    # forward every argument (`cursor .`, `cursor myfile.py` …)
    nohup "$APP" --no-sandbox "$@"  >/dev/null 2>&1 & disown
    exit
}
# ----------------------------------------------------------

Don’t forget to chmod +x cursor.appimage in the AppImages folder.

Tested on:

Date
15.06.2025
Categories
  • Linux
  • WebDev
Tags
  • bash
  • cli
  • cursor