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

if [[ $(uname) == "Darwin" ]]; then
  osascript -e "tell application \"Firefox\" to open location \"$1\""
else
  firefox "$1" &>/dev/null &
fi