Skip to content

Instantly share code, notes, and snippets.

@wasdee
Last active March 9, 2025 04:58
Show Gist options
  • Save wasdee/996de785bec2af47f3fd14c77a5b32e7 to your computer and use it in GitHub Desktop.
Save wasdee/996de785bec2af47f3fd14c77a5b32e7 to your computer and use it in GitHub Desktop.
open cursor in windows
$cursorPath = "c:\Users\lifep\AppData\Local\Programs\cursor\resources\app\bin\cursor"
$arguments = "--wait", "--reuse-window"
if ($args.Count -gt 0) {
$arguments += $args
}
Start-Process -FilePath $cursorPath -ArgumentList $arguments -WindowStyle Hidden -Wait
@echo off
powershell.exe -ExecutionPolicy Bypass -File "%~dp0edit_with_cursor.ps1" %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment