]> git.r.bdr.sh - rbdr/dotfiles/blob - zsh/functions/graphviz.zsh
Add graphql vim plugin
[rbdr/dotfiles] / zsh / functions / graphviz.zsh
1 # Graphviz functions
2 dot-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
10 neat-to-png () {
11 if [[ -n "${1+x}" ]]; then
12 neato -Tpng $1 -o ${1%.*}.png
13 else
14 echo 'Usage: neat-to-png <path_to_file>'
15 fi
16 }
17
18 seqdiag-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 }