mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-07 20:47:37 +00:00
feat(scripts): automate tool and AUR package installation setup
This commit is contained in:
1 parent
fd1fd0cc16
commit
58b6c10779
4 files changed
+99
-20
No files matched your search
@@ -7,12 +7,3 @@ 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
|
||||
Reference in new issue
Block a user