Skip to content

Commit

Permalink
fix(chezmoi): install minimum packages only for Linux and add go-task…
Browse files Browse the repository at this point in the history
… to prerequisites for macOS installation.
  • Loading branch information
entelecheia committed May 8, 2023
1 parent 11a2e85 commit 63c5a9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions chezmoi/.chezmoiscripts/run_once_after_21-install-minimum.tmpl
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
#!/bin/bash
# {{ if eq .chezmoi.os "linux" "darwin" }}
# {{ if eq .chezmoi.os "linux" }}
# {{ template "scripts-library" }}
log_task "21. Installing minimum packages"
log_task "21. Installing minimum packages for Linux"

ensure_path_entry "${HOME}/.local/bin"

# {{ if eq .chezmoi.os "linux" }}
# install yq
if ! yq --version &>/dev/null; then
log_task "Installing yq"
c wget /~https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O "${HOME}/.local/bin/yq" && chmod +x "${HOME}/.local/bin/yq"
fi
# {{ end }}

ensure_path_entry "${HOME}/.local/bin"

# install go
if ! go version &>/dev/null; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ readonly wanted_packages=(
node
age
go
go-task
sops
stow
pass
Expand Down

0 comments on commit 63c5a9b

Please sign in to comment.