This commit is contained in:
2023-03-06 16:40:41 -05:00
parent c9f7c105b5
commit 28502e425b

View File

@@ -4,61 +4,14 @@ BREW = $(BREWPATH)/brew
# This does not work inside of a make command.
bootstrap-homebrew:
xcode-select --install || true
$(shell source "$(PWD)/scripts/install-brew.sh")
source "$(PWD)/scripts/install-brew.sh"
chmod -R go-w $(brew --prefix)
bootstrap-brews:
"$(BREW)" bundle \
--no-lock \
--cleanup \
--debug \
--file "$(PWD)/macOS/.config/macOS/Brewfile"
bootstrap-minimal: bootstrap-homebrew
echo "Fix me"
bootstrap-casks:
"$(BREW)" bundle \
--no-lock \
--cleanup \
--debug \
--file "$(PWD)/macOS/.config/macOS/Casks.Brewfile"
bootstrap-logitech:
@curl \
--output ~/Downloads/logi-options.zip \
https://download01.logi.com/web/ftp/pub/techsupport/options/options_installer.zip
bootstrap-amazon-workdocs:
@curl \
--output ~/Downloads/AmazonWorkDocsDrive.pkg \
https://d3f2hupz96ggz3.cloudfront.net/mac/AmazonWorkDocsDrive.pkg
bootstrap-app-store:
"$(BREW)" bundle \
--no-lock \
--cleanup \
--debug \
--file "$(PWD)/macOS/.config/macOS/AppStore.Brewfile"
bootstrap-espanso:
@scripts/install-espanso-packages
bootstrap-non-brews: bootstrap-logitech bootstrap-amazon-workdocs bootstrap-espanso
# TODO: Remove stow in favor of customized scripts.
stow:
@stow --stow --verbose --target ~ */
# Order matters, need to install home-brew first then formula
bootstrap: bootstrap-homebrew bootstrap-brews bootstrap-casks stow bootstrap-non-brews bootstrap-app-store
open ~/Downloads
bail:
echo "You should first run 'source scripts/install-brew.sh'" && exit 1
bootstrap-minimal:
test -f "$(BREW)" || $(MAKE) bail
$(shell "$(PWD)/install")
$(MAKE) bootstrap-brews
"$(BREW)" install --cask iterm2
bootstrap:
echo "fix me"
# make a local zsh configuration file, to extend
# the normal .zshrc for configuration that is only