This is great, allows you to specify the default for the content type, rather than the file extension.
But the snippet given above didn't work for me, I had to quote the content like in k-funk's example. ie:
defaults write com.apple.LaunchServices LSHandlers -array-add "{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.2;}"
This is great, allows you to specify the default for the content type, rather than the file extension.
But the snippet given above didn't work for me, I had to quote the content like in k-funk's example. ie: