aboutsummaryrefslogtreecommitdiff
path: root/.functions
blob: 9390af8fa368b7dcc3f45bf7d2ac04741c19c5e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

open () {
    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
}