Split personal and work brew casks

This commit is contained in:
Andrew Tomaka 2023-11-11 11:55:25 -05:00
parent 6043c65210
commit 2820f10e6a
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
4 changed files with 18 additions and 4 deletions

View file

@ -1,5 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
readonly PROGNAME=$(basename $0)
readonly PROGDIR=$(readlink -m $(dirname $0))
readonly ARGS="$@"
install_homebrew() { install_homebrew() {
echo -n Checking homebrew... echo -n Checking homebrew...
if command -v brew > /dev/null; then if command -v brew > /dev/null; then
@ -164,8 +168,16 @@ install_darwin_brew_packages() {
install_darwin_brew_cask_packages() { install_darwin_brew_cask_packages() {
echo -n Checking Darwin brew cask packages... echo -n Checking Darwin brew cask packages...
package_files="packages-darwin-brew-cask.txt"
if [[ $ARGS == "personal" ]]; then
package_files+=" packages-darwin-brew-cask-personal.txt"
fi
if [[ $ARGS == "work" ]]; then
package_files+=" packages-darwin-brew-cask-work.txt"
fi
missing_packages=$( missing_packages=$(
comm -23 <(cat packages-darwin-brew-cask.txt) <(brew list | sort) \ comm -23 <(cat $package_files | sort) <(brew list | sort) \
| tr "\n" " " | tr "\n" " "
) )

View file

@ -0,0 +1,4 @@
arduino-ide
battle-net
prusaslicer
zwift

View file

@ -0,0 +1 @@
notion

View file

@ -1,11 +1,8 @@
alacritty alacritty
brave-browser brave-browser
discord discord
element
firefox firefox
google-chrome google-chrome
notion
rectangle rectangle
slack slack
telegram
zoom zoom