mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
Audit of configs, scripts, tmux-palette items and television cables against installed packages. Adds the missing pacman/AUR/brew entries, a [omarchy] repo list installed only where that repo is configured, and cargo installs in 40-post. 10-packages filters lists with pacman -T so provider packages (mise-bin, yazi-git) are not replaced, and uses yay with paru as fallback. noctalia-shell -> noctalia-git (AUR name).
19 lines
676 B
Cheetah
19 lines
676 B
Cheetah
#!/bin/sh
|
|
# Post-apply housekeeping. Re-runs when this file's rendered content changes.
|
|
set -eu
|
|
|
|
if command -v bat >/dev/null 2>&1; then bat cache --build >/dev/null || true; fi
|
|
|
|
{{ if eq .chezmoi.os "linux" -}}
|
|
if command -v fc-cache >/dev/null 2>&1; then fc-cache -f >/dev/null || true; fi
|
|
{{ end -}}
|
|
|
|
# cargo installs from packages.shared.cargo; skipped when cargo is absent.
|
|
# cargo hash: {{ .packages.shared.cargo | toJson | sha256sum }}
|
|
if command -v cargo >/dev/null 2>&1; then
|
|
installed=$(cargo install --list | awk '/^[^ ]/{print $1}')
|
|
{{ range .packages.shared.cargo }}
|
|
echo "$installed" | grep -qx "{{ . }}" || cargo install --locked "{{ . }}"
|
|
{{ end }}
|
|
fi
|