]> git.r.bdr.sh - rbdr/dotfiles/blame - zsh/functions/graphviz.zsh
Update gitconfig
[rbdr/dotfiles] / zsh / functions / graphviz.zsh
CommitLineData
fa250235
BB
1# Graphviz functions
2dot-to-png () {
3 if [[ -n "${1+x}" ]]; then
4 dot -Tpng $1 -o ${1%.*}.png
5 else
6 echo 'Usage: dot-to-png <path_to_file>'
7 fi
8}
9
10neat-to-png () {
11 if [[ -n "${1+x}" ]]; then
12 neato -Tpng $1 -o ${1%.*}.png
13 else
14 echo 'Usage: dot-to-png <path_to_file>'
15 fi
16}
17
18seqdiag-to-png () {
19 if [[ -n "${1+x}" ]]; then
20 seqdiag -o ${1%.*}.png -f /System/Library/Fonts/SFNSText.ttf $1
21 else
22 echo 'Usage: seqdiag-to-png <path_to_file>'
23 fi
24}