aboutsummaryrefslogtreecommitdiff
path: root/bin/open
blob: f5dd273b887a2aa5537002034850173fcf7c3c0b (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

if [ -f /usr/bin/xdg-open ]; then
    nohup xdg-open "$*" > /dev/null 2>&1 &
elif [ -f /usr/bin/open ]; then
    /usr/bin/open "$*"
else
    echo "No usable program is found"
fi