Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016DvdRZkyCy9NJpHYDdPqmS
13 lines
429 B
Bash
Executable File
13 lines
429 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Remove the launchd jobs and print how to clear the wake schedule.
|
|
set -euo pipefail
|
|
LA="$HOME/Library/LaunchAgents"
|
|
for p in caffeinate nightly market_open; do
|
|
launchctl unload "$LA/ai.tradingagent.$p.plist" 2>/dev/null || true
|
|
rm -f "$LA/ai.tradingagent.$p.plist"
|
|
echo "removed ai.tradingagent.$p"
|
|
done
|
|
echo
|
|
echo "Also clear the nightly wake schedule (needs sudo):"
|
|
echo " sudo pmset repeat cancel"
|