Skip to content

Commit

Permalink
fix(package): update package installation scripts for Linux and macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Jun 23, 2023
1 parent a20ad01 commit 3ddc816
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
# shellcheck source=/dev/null
source "${HOME}/.config/shrc/00-dotfiles-export"
# user package list
# {{- if (hasKey . "install_packages") -}}
# {{ .install_packages.user }}
# {{- end }}
# {{- $user_pkgs := list "" }}{{- if (hasKey . "install_packages") -}}{{ $user_pkgs = splitList " " .install_packages.user }}{{ end }}
# {{- if and (eq .chezmoi.os "linux") (.system.apply_rootmoi) (.system.is_sudoer) }}
# {{ range .packages }}{{ if and (hasKey . "apt") ( .apt ) ( has .name $user_pkgs ) }}{{- .name }} {{ end }}{{ end }}
# {{ range .packages }}{{ if and (hasKey . "apt") ( .apt ) }}{{- .name }} {{ end }}{{ end }}
# dotfiles-install-apt-pkgs hash: {{ include "dot_local/bin/executable_dotfiles-install-apt-pkgs.tmpl" | sha256sum }}
dotfiles-install-apt-pkgs
# {{- end }}
# {{- if eq .chezmoi.os "darwin" }}
# {{ range .packages }}{{ if and (hasKey . "brew") ( .brew ) ( has .name $user_pkgs ) }}{{- .name }} {{ end }}{{ end }}
# {{ range .packages }}{{ if and (hasKey . "brew") ( .brew ) }}{{- .name }} {{ end }}{{ end -}}
# {{ range .packages }}{{ if and (hasKey . "brewcask") ( .brewcask ) ( has .name $user_pkgs ) }}{{- .name }} {{ end }}{{ end }}
# {{ range .packages }}{{ if and (hasKey . "brewcask") ( .brewcask ) }}{{- .name }} {{ end }}{{ end }}
# dotfiles-install-brew-pkgs hash: {{ include "dot_local/bin/executable_dotfiles-install-brew-pkgs.tmpl" | sha256sum }}
dotfiles-install-brew-pkgs
Expand Down

0 comments on commit 3ddc816

Please sign in to comment.