diff options
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 |