Skip to content

Instantly share code, notes, and snippets.

@ejonasson
Created April 4, 2017 14:26
Show Gist options
  • Save ejonasson/9b96e0b9e5508bc774967006260bda00 to your computer and use it in GitHub Desktop.
Save ejonasson/9b96e0b9e5508bc774967006260bda00 to your computer and use it in GitHub Desktop.
Open A URL in Chrome, Safari, or Firefox
#!/bin/bash
## Takes an Input URL and opens thatin Chrome, Safari, and Firefox
## Used for Cross-Browser Testing
## Presumably only works on OSX
export url="$1"
open -a /Applications/Safari.app $url
open -a /Applications/Firefox.app $url
open -a /Applications/Google\ Chrome.app $url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment