Files
fleet-dotfiles-template/run_onchange_after_reload-launchd-agents.sh.tmpl
T
Anthony Cardinale ebccdda936 Initial public release
A chezmoi-based fleet-dotfiles template for macOS workstations:

- Two-way auto-sync via launchd watcher + 5-min puller
- Mesh SSH via modify_authorized_keys driven by .chezmoidata/fleet.yaml
- age-encrypted secrets file
- Bundled Claude Code agentic team (11 agents) + /lite + /lite-sub commands
- Verify-before-claiming Stop hook
- Generic statusline + project-boundary validate-path hook
- Reference launchd plist for cross-fleet task-durations aggregation
  (companion repo: gitea.tojo.team/cardinale/task-durations)
- AGENTS.md walks an agent through the entire setup Q&A interactively
- docs/ covers architecture, security model, fleet onboarding
2026-05-02 17:26:32 -04:00

21 lines
987 B
Cheetah

#!/bin/bash
# Reload chezmoi launchd agents whenever their plist content changes.
# This script is rerun by chezmoi when its rendered content changes — and the
# sha256 lines below depend on the plist templates, so any plist edit changes
# this script's render and triggers a rerun.
#
# watcher plist hash: {{ include "private_Library/LaunchAgents/com.chezmoi.claude-watcher.plist.tmpl" | sha256sum }}
# puller plist hash: {{ include "private_Library/LaunchAgents/com.chezmoi.claude-puller.plist.tmpl" | sha256sum }}
# pull-fleet plist hash: {{ include "private_Library/LaunchAgents/com.taskdurations.pull-fleet.plist.tmpl" | sha256sum }}
set -eu
for label in com.chezmoi.claude-watcher com.chezmoi.claude-puller com.taskdurations.pull-fleet; do
plist="$HOME/Library/LaunchAgents/$label.plist"
if [ -f "$plist" ]; then
launchctl unload "$plist" 2>/dev/null || true
launchctl load "$plist" 2>/dev/null || true
echo "Reloaded $label"
fi
done