diff --git a/tikzmake.sh b/tikzmake.sh index 9fbc082..560ca43 100644 --- a/tikzmake.sh +++ b/tikzmake.sh @@ -7,5 +7,8 @@ pdflatex $1.tex rm *.aux *.log *.vscodeLog rm *.tex -xdg-open $1.pdf - +if [[ "$OSTYPE" == "darwin"* ]]; then + open $1.pdf +else + xdg-open $1.pdf +fi