diff options
author | Patrick Simianer <p@simianer.de> | 2017-12-06 23:03:30 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2017-12-06 23:03:30 +0100 |
commit | cfdcb932606383446168cacebd84746778021c00 (patch) | |
tree | cbafd4a09384e43d644523802d33f5d752b9da2a /open-in-browser | |
parent | cdd09c94b7b06e85c5e5638f0ebc520d1fec64ef (diff) |
open-in-browser: multi OS
Diffstat (limited to 'open-in-browser')
-rwxr-xr-x | open-in-browser | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/open-in-browser b/open-in-browser index da7a845..655f915 100755 --- a/open-in-browser +++ b/open-in-browser @@ -1,6 +1,8 @@ -#!/bin/zsh +#!/usr/bin/env zsh -#/Applications/Safari.app/Contents/MacOS/Safari -#sleep 1 -osascript -e "tell application \"Firefox\" to open location \"$1\"" +if [[ $(uname) == "Darwin" ]]; then + osascript -e "tell application \"Firefox\" to open location \"$1\"" +else + firefox &>/dev/null +done |