Update dotfiles/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_before_11-install-darwin-packages.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_before_10_install-darwin-dependencies.tmpl

This commit is contained in:
Brian Zalewski 2022-11-24 20:26:58 +00:00
parent 316c73c215
commit 4d1ac31194
2 changed files with 8 additions and 6 deletions

View file

@ -10,6 +10,8 @@ xcode-select -p >/dev/null 2>&1 || xcode-select --install
if ! command -v brew >/dev/null 2>&1; then if ! command -v brew >/dev/null 2>&1; then
logg 'Installing Homebrew' logg 'Installing Homebrew'
/bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
logg 'Homebrew is already installed'
fi fi
{{ if eq .host.arch "arm64" -}} {{ if eq .host.arch "arm64" -}}

View file

@ -1,12 +1,12 @@
#!/usr/bin/env bash #!/usr/bin/env bash
{{- if eq .host.distro.id "darwin" }} {{- if eq .host.distro.id "darwin" }}
{{- $supportedManagers := list "whalebrew" "brew" "port" "go" "cargo" "npm" "pipx" "gem" "cask" "binary" }} {{- $supportedManagers := list "whalebrew" "brew" "port" "go" "cargo" "npm" "pipx" "gem" "cask" "binary" }}
{{- $packageMap := (get .installerMap $packageName) }} #{- $packageMap := (get .installerMap $packageName) }}
{{- if (hasKey $packageMap "_deps") }} #{- if (hasKey $packageMap "_deps") }}
{{- $deps := (get $packageMap "_deps") }} #{- $deps := (get $packageMap "_deps") }}
{{- range index $deps }} #{- range index $deps }}
{{- end }} #{- end }}
{{- end }} #{- end }}
# Examples of /etc/os-release values https://gist.github.com/natefoo/814c5bf936922dad97ff # Examples of /etc/os-release values https://gist.github.com/natefoo/814c5bf936922dad97ff
# Example fromJson with include from file https://github.com/twpayne/chezmoi/issues/1369 # Example fromJson with include from file https://github.com/twpayne/chezmoi/issues/1369