#!/usr/bin/env zsh if [[ $(uname) == "Darwin" ]]; then if [[ $1 == http://* || $1 == https://* ]]; then osascript -e "tell application \"Firefox\" to open location \"$1\"" else open -a Firefox $1 fi else firefox "$1" &>/dev/null & fi