Skip to content

Instantly share code, notes, and snippets.

@kahagon
Created December 21, 2013 16:19
Show Gist options
  • Select an option

  • Save kahagon/8071514 to your computer and use it in GitHub Desktop.

Select an option

Save kahagon/8071514 to your computer and use it in GitHub Desktop.
#!/bin/bash
now=`date +"%Y%m%d%H%M%S"`
dotfile="/tmp/$now.dot"
imgfile="/tmp/$now.png"
git graphviz "$@" > $dotfile
dot -Tpng -o $imgfile $dotfile
eog $imgfile
rm $dotfile $imgfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment