Manage launchd agents for automatic dotfiles synchronization. Check status, start/stop services, and monitor sync logs.
Manage automatic dotfiles synchronization using launchd agents on macOS.
This skill helps you manage an auto-sync launchd agent that automatically synchronizes dotfiles changes to GitHub every hour.
**Key Components:**
```bash
launchctl list | grep dotfiles
```
```bash
cat ~/Library/LaunchAgents/com.user.dotfiles-sync.plist
cat /Users/snkrheadz/ghq/github.com/snkrheadz/laptop/scripts/auto-sync.sh
```
```bash
cat ~/Library/Logs/dotfiles-sync.log | tail -50
tail -20 ~/Library/Logs/dotfiles-sync.log
```
```bash
launchctl unload ~/Library/LaunchAgents/com.user.dotfiles-sync.plist
launchctl load ~/Library/LaunchAgents/com.user.dotfiles-sync.plist
launchctl unload ~/Library/LaunchAgents/com.user.dotfiles-sync.plist && \
launchctl load ~/Library/LaunchAgents/com.user.dotfiles-sync.plist
```
```bash
/Users/snkrheadz/ghq/github.com/snkrheadz/laptop/scripts/auto-sync.sh
plutil -lint ~/Library/LaunchAgents/com.user.dotfiles-sync.plist
```
The auto-sync script performs these steps:
1. Navigate to dotfiles directory
2. Run `brew bundle dump --force` to update Brewfile
3. Stage all changes with `git add -A`
4. Commit changes if any exist
5. Push to remote repository
When issues occur:
1. Check agent status with `launchctl list | grep dotfiles`
2. Review logs to investigate last execution results
3. Test script manually to verify functionality
4. Restart agent if necessary
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/launchd-auto-sync-manager/raw