Set Brave as Default Browser from Command Line

By  on  

I've been a huge fan of the Brave web browser for years. They're crypto-friendly, provide native ad-blocking features, and even provide Tor integration. Whenever I set up new systems, I automate Brave as the default browser.

You can use the following shell command to set Brave as the default browser:

open -a "Brave Browser" --args --make-default-browser

Brave has been an excellent browser with a progressive outlook web browsing. I recommend everyone use Brave!

Recent Features

  • By
    Regular Expressions for the Rest of Us

    Sooner or later you'll run across a regular expression. With their cryptic syntax, confusing documentation and massive learning curve, most developers settle for copying and pasting them from StackOverflow and hoping they work. But what if you could decode regular expressions and harness their power? In...

  • By
    Vibration API

    Many of the new APIs provided to us by browser vendors are more targeted toward the mobile user than the desktop user.  One of those simple APIs the Vibration API.  The Vibration API allows developers to direct the device, using JavaScript, to vibrate in...

Incredible Demos

Discussion

  1. yes
    open -a "Brave Browser" --args --make-default-browser
    
    oem@DellHome:~$ open -a "Brave Browser" --args --make-default-browser
    xdg-open: unexpected option '-a'
    Try 'xdg-open --help' for more information.
    

    didnt work

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!