🍺 BREW Explorer

← all formulae

defaultbrowser

brew install defaultbrowser v1.1 MIT

Command-line tool for getting & setting the default browser

238
30-day installs · #2447
582
90-day · #2726
1.5k
365-day · #3147
360
★ GitHub stars · updated 1y ago

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Command-line tool for getting \u0026 setting the default browser",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:53+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "defaultbrowser",
  "github_default_branch": "master",
  "github_last_commit_at": "2024-09-04T07:12:43Z",
  "github_readme_excerpt": "defaultbrowser\n==============\n\nCommand line tool for setting the default browser (HTTP handler) in macOS X.\n\nInstall\n-------\n\nBuild it:\n\n```\nmake\n```\n\nInstall it into your executable path:\n\n```\nmake install\n```\n\nUsage\n-----\n\nSet the default browser with, e.g.:\n\n```\ndefaultbrowser chrome\n```\n\nRunning `defaultbrowser` without arguments lists available HTTP handlers and shows the current setting.\n\nHow does it work?\n-----------------\n\nThe code uses the [macOS Launch Services API](https://developer.apple.com/documentation/coreservices/launch_services).\n\nAdditional Resources\n--------------------\n\n- [Bash completion](https://github.com/jonasbn/bash_completion_defaultbrowser) for `defaultbrowser`\n\nLicense\n-------\n\nMIT\n",
  "github_repo": "kerma/defaultbrowser",
  "github_stars": 360,
  "github_topics": [],
  "homepage": "https://github.com/kerma/defaultbrowser",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 238,
  "installs_365d": 1549,
  "installs_90d": 582,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "defaultbrowser",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 2447,
  "rank_365d": 3147,
  "rank_90d": 2726,
  "raw_hash": "d0fe8f33367385bb",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/d/defaultbrowser.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "1.1",
  "versioned_formulae": [],
  "why_use_this": null
}