I have been using homebrew since 2016, but I frequently forgot to update brew and upgrade the installed packages. As I have been programming more, I wanted to find a way to automate the homebrew update/upgrade process.
I initially considered creating a shell script, but since I don't know shell scripting, I asked ChatGPT how to do it. I knew bash better than what I was currently using, zshell, and I was unaware of the differences in syntax or commands between the two. As I was querying the AI, I asked it if there was a way to run a program automatically. It reminded me of cron
. At this point, I recalled that macOS also has another scheduling system, launchd
.