46d5d9476a
Deleted dotfiles/.local/share/chezmoi/home/run_onchange_after_crontab.tmpl
24 lines
655 B
Cheetah
24 lines
655 B
Cheetah
{{- if eq .host.distro.id "darwin" }}
|
|
#!/usr/bin/env bash
|
|
|
|
# Required for styled logging
|
|
{{- includeTemplate "universal/logg" }}
|
|
|
|
logg 'Ensuring `xcode-select` is installed'
|
|
xcode-select -p >/dev/null 2>&1 || xcode-select --install
|
|
|
|
if ! command -v brew >/dev/null 2>&1; then
|
|
logg 'Installing Homebrew'
|
|
/bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
fi
|
|
|
|
{{ if eq .host.arch "arm64" -}}
|
|
eval $(/opt/homebrew/bin/brew shellenv)
|
|
{{- else }}
|
|
eval $(/usr/local/bin/brew shellenv)
|
|
{{- end }}
|
|
|
|
# brew bundle --verbose --no-lock --file=/dev/stdin <<EOF
|
|
# includeTemplate "darwin/brewfile" . }}
|
|
# EOF
|
|
{{- end -}}
|