Skip to content

Instantly share code, notes, and snippets.

@hanshoglund
Created October 15, 2012 00:47
Show Gist options
  • Save hanshoglund/3890307 to your computer and use it in GitHub Desktop.
Save hanshoglund/3890307 to your computer and use it in GitHub Desktop.
Dotviewer (OS X)
#!/bin/bash
# Drop in replacement for Dotty on OS X
# Renders a diagram as a PDF using 'dot' and opens the resultant file
DIR=/tmp/dotviewer
FILE=$DIR/$$.pdf
rm -r $DIR
mkdir -p $DIR
dot -Tpdf -o $FILE $@
open $FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment