I wrote a shellscript to make Cursor the default editor for 50+ file types on macOS.
With this, files you click in Finder or the terminal open in Cursor instead of VSCode (or any other editor).
The script uses duti.
I wrote a shellscript to make Cursor the default editor for 50+ file types on macOS.
With this, files you click in Finder or the terminal open in Cursor instead of VSCode (or any other editor).
The script uses duti.
Awesome! Thank you for this! I had used another hackish method to accomplish this, but your script is much cleaner and easier.