Script for making Cursor the default editor for 50+ file types on macOS

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.

2 Likes

Awesome! Thank you for this! I had used another hackish method to accomplish this, but your script is much cleaner and easier.

1 Like