summaryrefslogtreecommitdiff
path: root/open-in-browser
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2017-12-06 23:03:30 +0100
committerPatrick Simianer <p@simianer.de>2017-12-06 23:03:30 +0100
commitcfdcb932606383446168cacebd84746778021c00 (patch)
treecbafd4a09384e43d644523802d33f5d752b9da2a /open-in-browser
parentcdd09c94b7b06e85c5e5638f0ebc520d1fec64ef (diff)
open-in-browser: multi OS
Diffstat (limited to 'open-in-browser')
-rwxr-xr-xopen-in-browser10
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