dotfiles/bin/x-open

13 lines
266 B
Plaintext
Raw Normal View History

#!/bin/sh
case $(uname -r) in
2021-07-31 10:03:58 +00:00
*microsoft*) powershell.exe -noprofile start-process "'$@'";;
2021-09-18 17:06:06 +00:00
*)
if command -v exo-open >/dev/null 2>&1; then
exo-open "$@" 1>/dev/null 2>&1
else
xdg-open "$@"
fi
;;
esac