Platform specific helpers
Detect the OS the script is running on
Detect the OS the script is running on
- solaris | macos | linux | bsd | windows | unknown
Get opener command for platform
- Command that can be used, if it is not supported returns an empty string
Open a link using the default opener, if it is not possible/supported or an error occurs simply prints the url with instructions
- $1 (Link): to open
- 1: Failed to open link
- 0: Opened link using util
- Instructions in case link can not be opened