Files
mac_util_scripts/setup_automations.sh
Jason Ross cbdd4df33c fix(update-nvim-config): repair the command and match file to label
The one-line bash -c string had been re-wrapped mid-command, so bash
ran a bare pkill, then a headless nvim that never exited, and never
reached git pull. launchd won't start a job that is still running, so
the config had stopped updating altogether.

Put one command per line, escape &&, and move PATH into
EnvironmentVariables. Rename the plist to match its label, which is
also the name setup_automations.sh bootstraps; before this, a fresh
install downloaded update-nvim-config.plist and then failed to load it.
2026-09-27 15:37:13 -05:00

15 lines
748 B
Bash

#! /bin/bash
if [ ! -e "$HOME/Library/LaunchAgents" ]; then
mkdir ~/Library/LaunchAgents
fi
cd "$HOME/Library/LaunchAgents" || exit 1
curl -LO https://github.com/JMR-dev/mac_util_scripts/raw/refs/heads/main/LaunchAgents/com.user.homebrew-update.plist
curl -LO https://github.com/JMR-dev/mac_util_scripts/raw/refs/heads/main/LaunchAgents/com.user.restart-browsers.plist
curl -LO https://github.com/JMR-dev/mac_util_scripts/raw/refs/heads/main/LaunchAgents/com.user.update-nvim-config.plist
# Install Commands
launchctl bootstrap gui/"$(id -u)" com.user.homebrew-update.plist
launchctl bootstrap gui/"$(id -u)" com.user.restart-browsers.plist
launchctl bootstrap gui/"$(id -u)" com.user.update-nvim-config.plist
echo 'Automation agents installed'