Better templates

This commit is contained in:
js0ny 2025-11-08 12:30:43 +00:00
parent 1fc2c892a4
commit 8cf2f0af5e
5 changed files with 21 additions and 5 deletions

View file

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
{{ if .wheel }}
echo "[INFO] Use TouchID to authenticate before running sudo commands." echo "[INFO] Use TouchID to authenticate before running sudo commands."
echo "[WARNING] This operation modifies critical system files." echo "[WARNING] This operation modifies critical system files."
echo " If something goes wrong, you may need to boot into macOS Recovery Mode to restore your system." echo " If something goes wrong, you may need to boot into macOS Recovery Mode to restore your system."
@ -14,3 +16,9 @@ echo ""
set -x set -x
sudo cp ~/.dotfiles/misc/mac/etc/pam.d/sudo /etc/pam.d/sudo sudo cp ~/.dotfiles/misc/mac/etc/pam.d/sudo /etc/pam.d/sudo
set +x set +x
{{ else }}
exit 0 # Exit with success status code
{{ end }}

View file

@ -1,5 +0,0 @@
#!/bin/sh
echo "[INFO] Rebuilding fonts cache..."
fc-cache -fv

View file

@ -1,5 +1,10 @@
#!/bin/sh #!/bin/sh
# misc/firefox/policies.json hash:
# {{ include joinPath .chezmoi.homeDir ".dotfiles" "misc/firefox/policies.json" | sha256sum }}
# misc/firefox/search.json.mozlz4 hash:
# {{ include joinPath .chezmoi.homeDir ".dotfiles" "misc/firefox/search.json.mozlz4" | sha256sum }}
# Check if firefox is installed # Check if firefox is installed
if ! command -v firefox &> /dev/null; then if ! command -v firefox &> /dev/null; then
echo "[WARNING] Firefox is not installed. Skip this script." echo "[WARNING] Firefox is not installed. Skip this script."

View file

@ -0,0 +1,8 @@
#!/bin/sh
# .chezmoiexternals/linux-fonts.toml hash:
# {{ include ".chezmoiexternals/linux-fonts.toml" | sha256sum }}
echo "[INFO] Rebuilding fonts cache..."
fc-cache -fv