mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 19:32:24 +00:00
13 lines
229 B
Bash
13 lines
229 B
Bash
|
#!/bin/bash
|
||
|
pngfile=$(echo "$1" | sed 's/\.plantuml$/.png/g')
|
||
|
|
||
|
function finish {
|
||
|
rm "$pngfile"
|
||
|
}
|
||
|
|
||
|
trap finish EXIT
|
||
|
|
||
|
plantuml -tpng "$1"
|
||
|
feh --auto-zoom --auto-reload --fullscreen "$pngfile" &
|
||
|
echo "$1" | entr plantuml -tpng /_
|