Skip to content

Commit

Permalink
fix xdg-open not found error on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenShi-23 committed Apr 1, 2019
1 parent ccb9a47 commit fb2b137
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 fb2b137

Please sign in to comment.