title: How can I get the default browser name in bash script on Mac OS X
body: <p>I want to find out if the default browser is Google Chrome on a Mac OS X machine before the script executes.</p>
  
  <p>How can I do it? thanks!</p>