7c9b53f1f6
Deleted dotfiles/.local/share/chezmoi/home/run_onchange_after_bash-completions, dotfiles/.local/share/chezmoi/home/run_once_before_install-software.sh.tmpl
21 lines
490 B
Cheetah
21 lines
490 B
Cheetah
{{- if eq .host.distro.id "darwin" }}
|
|
#!/usr/bin/env bash
|
|
|
|
set -eufo pipefail
|
|
|
|
{{- includeTemplate "universal/logg" }}
|
|
|
|
logg 'Ensuring ZSH is set as the default shell'
|
|
|
|
{{- if (not .host.restricted) }}
|
|
if ! grep -qc "/usr/local/bin/zsh" /etc/shells; then
|
|
echo "/usr/local/bin/zsh" | sudo tee -a /etc/shells > /dev/null
|
|
fi
|
|
|
|
{{- if eq .host.arch "arm64" }}
|
|
if [[ ! -e /usr/local/bin/zsh ]]; then
|
|
sudo ln -sf /opt/homebrew/bin/zsh /usr/local/bin/zsh
|
|
fi
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|