pinf-io / pio.cli

0 stars 0 forks source link

`pio open` on Ubuntu #1

Open cadorn opened 10 years ago

cadorn commented 10 years ago

The cli tooling is confirmed working on an Ubuntu VM.

The only thing not working is the opening of the browser when calling pio open.

It uses open <url> under the hood.

What is the Ubuntu equivalent to open browser and detach from launch process?

cadorn commented 10 years ago
if [ "$(uname)" == "Darwin" ]; then
    open "http://devcomp.io/";
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
    xdg-open "http://devcomp.io";
fi