-
-
Save OrigamiEngineer/15de60e37a47fb7f08e63f66f2b24066 to your computer and use it in GitHub Desktop.
Open URL from Termux command line in Firefox Android browser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# open-in-firefox.sh - open URL from Termux command line in Firefox 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.firefox/.App -d "$1" >/dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# publish-sphinx-docs.sh - Generate HTML output from Sphinx ReST sources | |
# and open them for viewing in Firefox app | |
# | |
DESTDIR="/storage/emulated/0/Documents" | |
[ -n "$1" ]; cd "$1" | |
make html | |
mkdir -p "$DESTDIR" | |
rsync -rv --update _build/html/ "$DESTDIR" | |
open-in-firefox.sh "file://$DESTDIR/index.html" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment