Skip to content

Instantly share code, notes, and snippets.

@malteneuss
Last active December 20, 2022 18:38
Show Gist options
  • Save malteneuss/ba42d6712a5354524cdaf688ebcfd8df to your computer and use it in GitHub Desktop.
Save malteneuss/ba42d6712a5354524cdaf688ebcfd8df to your computer and use it in GitHub Desktop.
Live-edit plantuml with auto-reload within single line of watchexec
SOURCE="test.puml"; TARGET="test.png"; watchexec -f $SOURCE "plantuml $SOURCE && ristretto $TARGET"
# We need an app to trigger a rebuilds our sourcecode file into a target image file whenever our source file changes:
# watchexec
# Source https://github.com/watchexec/watchexec
#
# We need a light-weight,fast, non-flashing image-viewer that auto-reloads what we see whenever the target image file changes:
# ristretto
# Source https://github.com/xfce-mirror/ristretto but you could also try out other like
# feh
# Source https://github.com/derf/feh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment