Skip to content

Instantly share code, notes, and snippets.

@elig0n
Forked from SpotlightKid/open-in-firefox.sh
Last active December 16, 2023 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elig0n/9a73d5445ee728987fc88955688ac922 to your computer and use it in GitHub Desktop.
Save elig0n/9a73d5445ee728987fc88955688ac922 to your computer and use it in GitHub Desktop.
Open URL from Termux command line in Firefox Android browser
#!/bin/bash
#
# open-in-firefox-nightly.sh - open URL from Termux command line in Firefox Nightly Android browser
#
# Works with file:// URLs too, unlike with termux-open{-url}.
#
exec am start --user 0 -a android.intent.action.VIEW -n org.mozilla.fenix/.IntentReceiverActivity -d "$1" >/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment