Files
dotfiles/Makefile
2023-03-04 11:21:17 -05:00

63 lines
1.7 KiB
Makefile

# 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
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
# 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"