Skip to content

Instantly share code, notes, and snippets.

@glallen01
Last active April 14, 2022 13:01
Show Gist options
  • Save glallen01/f271102d577fb51c4161f360a00f7c24 to your computer and use it in GitHub Desktop.
Save glallen01/f271102d577fb51c4161f360a00f7c24 to your computer and use it in GitHub Desktop.
graphviz -> iterm
# from https://twitter.com/thingskatedid/status/1483847024894099458?s=20&t=7HJKiUFH7ucFOZSlCkMflQ
# transparent doesn't seem tow work with sixel
# convert -trim -bordercolor black -border 20 -transparent black -resize '80%' - - \
brew install libsixel
alias idot='dot -Tpng \
-Efontsize=18 -Efontname=sans -Ecolor=white -Efontcolor=white \
-Efontsize=18 -Nfontname=sans -Ncolor=white -Nfontcolor=white \
-Gbgcolor=black -Gcolor=white \
| convert -trim -bordercolor black -border 20 -resize '80%' - - \
| img2sixel'
echo ' graph { a -- b; b -- c; a -- c; d -- c; e -- c; e -- a; }' | idot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment