To set Sublime text editor as default editor using mac terminal here is what it needs to be done:
paste this line in your terminal and that is it!
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl