From 6da046a8e5861e55966275c3aa39c74548609ef1 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Sat, 4 Mar 2023 14:12:21 -0500 Subject: [PATCH] wip --- Makefile | 11 +++++++---- zsh/config/.zshenv | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 5601b2a..b86718a 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +BREWPATH ?= /opt/homebrew/bin +BREW = $(BREWPATH)/brew + # This does not work inside of a make command. bootstrap-homebrew: xcode-select --install || true @@ -5,14 +8,14 @@ bootstrap-homebrew: chmod -R go-w $(brew --prefix) bootstrap-brews: - @brew bundle \ + "$(BREW)" bundle \ --no-lock \ --cleanup \ --debug \ --file "$(PWD)/macOS/.config/macOS/Brewfile" bootstrap-casks: - @brew bundle \ + "$(BREW)" bundle \ --no-lock \ --cleanup \ --debug \ @@ -29,7 +32,7 @@ bootstrap-amazon-workdocs: https://d3f2hupz96ggz3.cloudfront.net/mac/AmazonWorkDocsDrive.pkg bootstrap-app-store: - @brew bundle \ + "$(BREW)" bundle \ --no-lock \ --cleanup \ --debug \ @@ -50,7 +53,7 @@ bootstrap: bootstrap-homebrew bootstrap-brews bootstrap-casks stow bootstrap-non bootstrap-minimal: bootstrap-homebrew bootstrap-brews $(shell "$(PWD)/install") - brew install --cask iterm2 + "$(BREW)" install --cask iterm2 # make a local zsh configuration file, to extend # the normal .zshrc for configuration that is only diff --git a/zsh/config/.zshenv b/zsh/config/.zshenv index 826714b..ff83d96 100644 --- a/zsh/config/.zshenv +++ b/zsh/config/.zshenv @@ -1 +1,2 @@ +# Point to where the zsh config is. export ZDOTDIR="$HOME/.config/zsh"