summaryrefslogtreecommitdiff
path: root/open-in-browser
blob: 8c92e3c154a5606f767c5b651880dd9b5ebdc4d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env zsh

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