blob: bb30c646d9b1899d9cdceb0971c5676ea2cadccc (
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 \"Firefox\" to open location \"$1\""
else
open -a Firefox $1
fi
else
firefox "$1" &>/dev/null &
fi
|