Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle #160

Merged
merged 4 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dot_config/topgrade/topgrade.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[misc]

# Skip sending a notification at the end of a run (default: false)
skip_notify = true

# Commands to run after anything
[post_commands]
"Update brew bundle" = "/opt/homebrew/bin/brew bundle dump --force --file /Users/jasonmorganson/Library/Mobile Documents/com~apple~CloudDocs/Homebrew/Brewfile"
4 changes: 4 additions & 0 deletions dot_profile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ export XDG_VIDEOS_DIR="$HOME/Videos"

# PATH
export PATH="$HOME/.local/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin"

# Homebrew
export HOMEBREW_BUNDLE_FILE="~/Library/Mobile\ Documents/com~apple~CloudDocs/Homebrew/Brewfile"

25 changes: 25 additions & 0 deletions private_Library/LaunchAgents/io.github.topgrade-rs.topgrade.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>io.github.topgrade-rs.topgrade</string>

<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/topgrade</string>
</array>

<key>StartInterval</key>
<integer>10800</integer> <!-- Number of seconds in 3 hours -->

<key>RunAtLoad</key>
<true/>

<key>StandardErrorPath</key>
<string>/tmp/io.github.topgrade-rs.topgrade/err</string>

<key>StandardOutPath</key>
<string>/tmp/io.github.topgrade-rs.topgrade/out</string>
</dict>
</plist>