Monorepo for Aesthetic.Computer
aesthetic.computer
1#!/usr/bin/env fish
2# Live reload watcher for kidlisp.com
3
4echo "👀 Watching kidlisp.com/index.html for changes..."
5echo "🌐 Server running at http://localhost:8765"
6echo "Press Ctrl+C to stop"
7
8set last_hash (md5sum index.html | cut -d' ' -f1)
9
10while true
11 sleep 0.5
12 set current_hash (md5sum index.html | cut -d' ' -f1)
13
14 if test "$current_hash" != "$last_hash"
15 echo "🔄 Detected change in index.html - page will auto-reload"
16 set last_hash $current_hash
17 # Touch the file to update last-modified header
18 touch index.html
19 end
20end