Created
August 3, 2026 14:51
-
-
Save bsag/38ed2ede4bf7e3707878f21994a4567b to your computer and use it in GitHub Desktop.
Chezmoi configuration examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{- $arm := false }}{{/* are we running on intel or arm processor? */}} | |
| {{- if eq .chezmoi.os "darwin" -}} | |
| {{- if contains "arm" (output "uname" "-p" | trim) -}} | |
| {{- $arm = true -}} | |
| {{- end -}} | |
| {{- end -}} | |
| [data] | |
| arm = {{ $arm }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{- if .arm }} | |
| eval "$(/opt/homebrew/bin/brew shellenv)" | |
| {{ else }} | |
| eval "$(/usr/local/bin/brew shellenv)" | |
| {{- end }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment