dotfiles/bin/x-open

13 lines
278 B
Bash
Executable File

#!/bin/sh
case $(uname -r) in
*microsoft*|*Microsoft*) powershell.exe -noprofile start-process "'$@'";;
*)
if command -v exo-open >/dev/null 2>&1; then
exo-open "$@" 1>/dev/null 2>&1
else
xdg-open "$@"
fi
;;
esac