diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/open | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/open b/bin/open new file mode 100755 index 0000000..f5dd273 --- /dev/null +++ b/bin/open @@ -0,0 +1,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 |