Skip to content

Instantly share code, notes, and snippets.

@hhfrancois
hhfrancois / CursorDesktopIntegrator.sh
Last active May 23, 2024 11:08 — forked from arpagon/CursorDesktopIntegrator.sh
CursorDesktopIntegrator
#!/bin/bash
# Step 1: Find the latest version of the .AppImage
LATEST_APPIMAGE=$(ls -t $HOME/Applications/cursor-*.AppImage | head -n 1)
echo "Latest AppImage: $LATEST_APPIMAGE"
# Step 2: Update symlink to the latest version
SYMLINK_PATH="$HOME/Applications/cursor.AppImage"
ln -sf $LATEST_APPIMAGE $SYMLINK_PATH
echo "Updated symlink to: $SYMLINK_PATH"