brew install plantuml fswatch
# Download plantuml-watch.sh
chmod +x ./plantuml-watch.sh
mkdir -p /usr/local/bin
mv ./plantuml-watch.sh /usr/local/bin/plantuml-watch
# Confirm /usr/local/bin is in PATH or mv script to directory in PATH
echo $PATH
Use plantuml-watch
exactly as you would plantuml
. Assuming the file foobar.puml
is in the current directory, you should see the output below and the default app for the output filetype should open automatically and refresh after every saved change to the the source file.
$ plantuml-watch ./foobar.puml
Watching ./foobar.puml for changes...