dotfiles/bin/x-open

13 lines
278 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
case $(uname -r) in
2021-10-05 15:32:57 +00:00
*microsoft*|*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