Split personal and work brew casks
This commit is contained in:
parent
6043c65210
commit
2820f10e6a
4 changed files with 18 additions and 4 deletions
14
install.sh
14
install.sh
|
@ -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" " "
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
4
packages-darwin-brew-cask-personal.txt
Normal file
4
packages-darwin-brew-cask-personal.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
arduino-ide
|
||||||
|
battle-net
|
||||||
|
prusaslicer
|
||||||
|
zwift
|
1
packages-darwin-brew-cask-work.txt
Normal file
1
packages-darwin-brew-cask-work.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
notion
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue