44d8c6f774
Deleted dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_20_install-helm-plugins.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_30_install-krew-plugins.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_40_install-rust-toolchain.tmpl
20 lines
543 B
Cheetah
20 lines
543 B
Cheetah
{{- if eq .host.distro.id "darwin" }}
|
|
#!/usr/bin/env bash
|
|
|
|
xcode-select -p >/dev/null 2>&1 || xcode-select --install
|
|
|
|
if ! command -v brew >/dev/null 2>&1; then
|
|
echo "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 -}}
|