A CRDT-based Messenger in 12 Lines of Bash Using a Synced Folder

mkdir -p $(dirname $0)/data; cd data print_messages() { clear cat $(ls -tr | tail -n30) printf "033[31m$USER:033[0m " } export -f print_messages watchexec 2> /dev/null -- bash -c "print_messages" & while read text; do printf