Last active
April 14, 2022 13:01
-
-
Save glallen01/f271102d577fb51c4161f360a00f7c24 to your computer and use it in GitHub Desktop.
graphviz -> iterm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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