mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
71 lines
2.0 KiB
Makefile
71 lines
2.0 KiB
Makefile
BREWPATH ?= /opt/homebrew/bin
|
|
BREW = $(BREWPATH)/brew
|
|
|
|
# This does not work inside of a make command.
|
|
bootstrap-homebrew:
|
|
xcode-select --install || true
|
|
$(shell "$(PWD)/install-brew.sh")
|
|
chmod -R go-w $(brew --prefix)
|
|
|
|
bootstrap-brews:
|
|
"$(BREW)" bundle \
|
|
--no-lock \
|
|
--cleanup \
|
|
--debug \
|
|
--file "$(PWD)/macOS/.config/macOS/Brewfile"
|
|
|
|
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
|
|
|
|
bootstrap-minimal: bootstrap-homebrew bootstrap-brews
|
|
$(shell "$(PWD)/install")
|
|
"$(BREW)" install --cask iterm2
|
|
|
|
# make a local zsh configuration file, to extend
|
|
# the normal .zshrc for configuration that is only
|
|
# relevant on the local machine.
|
|
zshrc-local:
|
|
# check if a file already exists or not and create it if not.
|
|
test -f "$(PWD)/zsh/config/.zshrc-local" \
|
|
|| echo "#!/usr/bin/env zsh" > "$(PWD)/zsh/config/.zshrc-local"
|
|
# add symlink to appropriate location if doesn't exist.
|
|
test -L "$(HOME)/.config/zsh/.zshrc-local" \
|
|
|| ln -sfv "$(PWD)/zsh/config/.zshrc-local" "$(HOME)/.config/zsh/"
|
|
# open the file to edit.
|
|
vim "$(PWD)/zsh/config/.zshrc-local"
|
|
|