#!/usr/bin/env bash # # install-launchagent.sh — run any command as a per-user LaunchAgent, so it starts # when you log in and (optionally) is restarted by launchd whenever it exits. # # It writes ~/Library/LaunchAgents/