Files
git.taskfile.build/bin/open-with-os
T

14 lines
212 B
Bash
Executable File

#!/usr/bin/env bash
open-with-os(){
if [[ -z "$1" ]]; then
echo '$1 is empty.'
exit
fi
if [[ "$(uname)" == "Darwin" ]]; then
open "$1"
else
xdg-open "$1"
fi
}