Skip to content
jwbargstenPublic

About

Change the default browser in macOS (Catalina, Big Sur).

Resources

Stars

54 stars

Watchers

3 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

defbro

Change the default browser in macOS (Catalina, Big Sur).

Installation

brew install jwbargsten/misc/defbro

Usage

List browsers

defbro

Change default browser

defbro org.mozilla.firefox

Toggle between Firefox and Chrome

defbro $(defbro | grep -v "^\*" | grep "org.mozilla.firefox\|com.google.Chrome" | cut -d " " -f3)

Which browser is currently not the the default

defbro --json | jq -r '.[] | select(.id | contains("firefox") or contains("Chrome")) | select(.isDefault | not) | .id'

See also

I also wrote a small lab/tutorial for me (and possibly others), in case you want to start with Swift and homebrew.

About

Change the default browser in macOS (Catalina, Big Sur).

Resources

Stars

54 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages