Skip to content

add -s flag to print current default browser silently#35

Open
pcholt wants to merge 1 commit into
kerma:masterfrom
pcholt:add-silent-flag
Open

add -s flag to print current default browser silently#35
pcholt wants to merge 1 commit into
kerma:masterfrom
pcholt:add-silent-flag

Conversation

@pcholt

@pcholt pcholt commented Jun 16, 2026

Copy link
Copy Markdown

Summary

  • Adds a -s flag that prints just the current default browser name, with no list and no asterisk
  • Useful for scripting where you only need the current value

Test plan

  • Run defaultbrowser -s and confirm it prints only the current browser name
  • Run defaultbrowser (no args) and confirm the list output is unchanged
  • Run defaultbrowser chrome (or another browser) and confirm setting still works

Outputs just the browser name with no list or asterisk, useful for
scripting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant