install.fairie/home/Library/Fonts/run_onchange_after_add-fonts.tmpl

24 lines
878 B
Cheetah
Raw Normal View History

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 15:20:05 -08:00
{{- 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
Update .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_99_bootstrap-zsh-plugins.tmpl, .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_10_install-aqua-packages.sh.tmpl, .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_50-crontab.tmpl, .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_before_5-install-homebrew.tmpl, .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_before_8-install-zx.tmpl, .local/share/chezmoi/home/.chezmoiscripts/windows/run_onchange_before_10-install-windows-dependencies.tmpl, .local/share/chezmoi/home/.chezmoiscripts/windows/run_onchange_before_11-install-windows-packages.tmpl, .local/share/chezmoi/home/.chezmoiscripts/ubuntu/run_onchange_before_10_install-ubuntu-dependencies.tmpl, .local/share/chezmoi/home/.chezmoiscripts/opensuse/run_onchange_before_11-install-opensuse-software.tmpl, .local/share/chezmoi/home/.chezmoiscripts/freebsd/run_onchange_before_11-install-freebsd-packages.tmpl, .local/share/chezmoi/home/.chezmoiscripts/fedora/run_onchange_before_10-install-fedora-dependencies.tmpl, .local/share/chezmoi/home/.chezmoiscripts/debian/run_onchange_before_10-install-debian-dependencies.tmpl, .local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_before_10_install-darwin-dependencies.tmpl, .local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_set-wallpaper.tmpl, .local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_20-ensure-zsh-macos.tmpl, .local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_10_configure-macos.tmpl, .local/share/chezmoi/home/.chezmoiscripts/centos/run_onchange_before_10-install-centos-dependencies.tmpl, .local/share/chezmoi/home/.chezmoiscripts/archlinux/run_onchange_before_10_install-archlinux-dependencies.tmpl, .local/share/chezmoi/home/Library/Fonts/run_onchange_after_add-fonts.tmpl
2022-12-01 23:18:16 -08:00
logg info 'Adding '"$BASENAME"' to ~/Library/Fonts'
cp "$FONT_FILE" "$HOME/Library/Fonts/$BASENAME"
fi
done
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 15:20:05 -08:00
{{ end -}}