This script automates the process of updating Homebrew and associated package lists. It can be used to keep track of installed packages and update them as needed.
Run the following command to update both Brew and Cask lists:
./update_brew_lists
This command will update the lists and commit the changes to Git.
If Homebrew is not installed, you can use the following command to install it and the packages listed in the Brew and Cask lists:
./update_brew_lists --install
To update only the Brew lists without committing the changes to Git, you can use:
./update_brew_lists --update-brew-lists
You can specify custom directories to save the Brew and Cask lists:
./update_brew_lists --save-brew-dir
./update_brew_lists --save-cask-dir /path/to/custom/dir
Note: Make sure to create the custom directories before running these commands.
The script uses the following default directories: