Skip to content

Commit

Permalink
Merge pull request HarisIqbal88#41 from StevenShi-23/master
Browse files Browse the repository at this point in the history
fix xdg-open not found error on MacOS
  • Loading branch information
HarisIqbal88 authored Jul 30, 2019
2 parents cea5a70 + fb2b137 commit 40801a8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tikzmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 40801a8

Please sign in to comment.