Skip to content

Instantly share code, notes, and snippets.

@rallisf1
Created May 24, 2023 09:41
Show Gist options
  • Save rallisf1/1ca7b7fbf1691f8f6d2852404841e912 to your computer and use it in GitHub Desktop.
Save rallisf1/1ca7b7fbf1691f8f6d2852404841e912 to your computer and use it in GitHub Desktop.
Open .url links in Linux
#!/bin/bash
grep -h -s --color=never '^URL=' "$@" | cut -d'=' -f2- | xargs xdg-open &
@rallisf1
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment