Monorepo for Aesthetic.Computer
aesthetic.computer
1#!/bin/bash
2# Post-attach script - runs when VS Code attaches to the devcontainer.
3# The "💻 Aesthetic" task (runOn: folderOpen) should auto-start the emacs TUI,
4# but after devcontainer rebuilds VS Code sometimes doesn't fire the folderOpen
5# event. This script waits briefly and checks if the task started.
6
7echo "✅ Attached to aesthetic container"
8
9# Give the auto-task a few seconds to start
10sleep 5
11
12# Check if the aesthetic task / emacsclient is running
13if pgrep -f "aesthetic-launch.sh" > /dev/null || pgrep -f "emacsclient" > /dev/null; then
14 echo "✅ Aesthetic platform task is running."
15else
16 echo ""
17 echo "⚠️ The '💻 Aesthetic' task did not auto-start."
18 echo " This can happen after a devcontainer rebuild."
19 echo ""
20 echo " 👉 Run 'ac-aesthetic' in any fish terminal to connect."
21 echo " Or use: Terminal > Run Task > 💻 Aesthetic"
22 echo ""
23 # Check if emacs daemon is at least running (entry.fish should have started it)
24 if pgrep -f "emacs.*daemon" > /dev/null; then
25 echo " ✅ Emacs daemon is running (pre-started by entry.fish)"
26 echo " 'ac-aesthetic' will connect instantly."
27 else
28 echo " ⏳ Emacs daemon may still be starting..."
29 fi
30fi