install.fairie/home/Library/Fonts/run_onchange_after_add-fonts.tmpl
Brian Zalewski c675ee3fe7 Update 28 files
- /home/dot_var/app/com.visualstudio.code/config/private_Code/symlink_User
- /home/Library/Application Support/Code/symlink_User
- /home/AppData/Local/clink/oh-my-posh.lua
- /home/Library/Application Support/VSCodium/symlink_User
- /home/Library/Preferences/com.apple.dock.plist
- /home/Library/Application Support/symlink_tabby
- /home/Library/Application Support/Code/User/extensions/symlink_theme-betelgeuse-vscode.tmpl
- /home/Library/Application Support/Code/User/symlink_settings.json.tmpl
- /home/Library/Application Support/Code/User/symlink_keybindings.json.tmpl
- /home/Library/Application Support/Code/User/symlink_extensions.json.tmpl
- /home/Library/Application Support/VSCodium/Code/User/extensions/symlink_theme-betelgeuse-vscode.tmpl
- /home/Library/Application Support/VSCodium/Code/User/symlink_extensions.json.tmpl
- /home/Library/Application Support/VSCodium/Code/User/symlink_keybindings.json.tmpl
- /home/Library/Application Support/VSCodium/Code/User/symlink_settings.json.tmpl
- /home/Library/Application Support/tabby/symlink_config.yaml.tmpl
- /home/Library/Application Support/tabby/symlink_plugins.tmpl
- /home/Library/Fonts/run_onchange_after_add-fonts.tmpl
- /home/Library/Preferences/com.apple.dock.plist.tmpl
- /home/dot_var/app/com.visualstudio.code/config/Code/User/extensions/symlink_theme-betelgeuse-vscode.tmpl
- /home/dot_var/app/com.visualstudio.code/config/Code/User/symlink_settings.json.tmpl
- /home/dot_var/app/com.visualstudio.code/config/Code/User/symlink_keybindings.json.tmpl
- /home/dot_var/app/com.visualstudio.code/config/Code/User/symlink_extensions.json.tmpl
- /home/AppData/Roaming/Code/User/extensions/symlink_theme-betelgeuse-vscode
- /home/AppData/Roaming/Code/User/symlink_extensions.json
- /home/AppData/Roaming/Code/User/symlink_keybindings.json
- /home/AppData/Roaming/Code/User/symlink_settings.json
- /home/AppData/Roaming/Google Assistant/symlink_config.json.tmpl
- /home/AppData/Local/clink/oh-my-posh.lua.tmpl
2023-01-24 23:20:05 +00:00

23 lines
878 B
Cheetah

{{- if eq .host.distro.family "darwin" -}}
#!/usr/bin/env bash
{{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
{{ $fontFiles := (output "find" (joinPath .chezmoi.homeDir ".local" "share" "fonts") "-type" "f") -}}
{{- range $fontFile := splitList "\n" $fontFiles -}}
{{- if ne $fontFile "" -}}
# {{ $fontFile }} hash: {{ $fontFile | sha256sum }}
{{ end -}}
{{- end }}
### Ensure all fonts are added to ~/Library/Fonts on macOS
find "$HOME/.local/share/fonts" -type f | while read FONT_FILE; do
BASENAME="$(basename "$FONT_FILE")"
if [ ! -f "$HOME/Library/Fonts/$BASENAME" ] || [ "$(openssl sha256 "$HOME/Library/Fonts/$BASENAME" | sed 's/.*= //')" != "$(openssl sha256 "$FONT_FILE" | sed 's/.*= //')" ]; then
logg info 'Adding '"$BASENAME"' to ~/Library/Fonts'
cp "$FONT_FILE" "$HOME/Library/Fonts/$BASENAME"
fi
done
{{ end -}}