Created
May 24, 2023 09:41
-
-
Save rallisf1/1ca7b7fbf1691f8f6d2852404841e912 to your computer and use it in GitHub Desktop.
Open .url links in Linux
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 | |
grep -h -s --color=never '^URL=' "$@" | cut -d'=' -f2- | xargs xdg-open & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just make it executable and set it as default app for .url files. It will use whatever default browser you have configured in your system settings.