1 2 3 4 5 6 7
#!/usr/bin/env bash set -euo pipefail watchexec \ --watch src \ --restart \ "(killall flashcards || true) && tput reset && cargo build && bin/run.sh"