Files
dotfiles/Makefile
2023-03-06 16:40:41 -05:00

29 lines
866 B
Makefile

BREWPATH ?= /opt/homebrew/bin
BREW = $(BREWPATH)/brew
# This does not work inside of a make command.
bootstrap-homebrew:
xcode-select --install || true
source "$(PWD)/scripts/install-brew.sh"
chmod -R go-w $(brew --prefix)
bootstrap-minimal: bootstrap-homebrew
echo "Fix me"
bootstrap:
echo "fix me"
# 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"