Update .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_99_bootstrap-zsh-plugins.tmpl, .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_10_install-aqua-packages.sh.tmpl, .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_50-crontab.tmpl, .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_before_5-install-homebrew.tmpl, .local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_before_8-install-zx.tmpl, .local/share/chezmoi/home/.chezmoiscripts/windows/run_onchange_before_10-install-windows-dependencies.tmpl, .local/share/chezmoi/home/.chezmoiscripts/windows/run_onchange_before_11-install-windows-packages.tmpl, .local/share/chezmoi/home/.chezmoiscripts/ubuntu/run_onchange_before_10_install-ubuntu-dependencies.tmpl, .local/share/chezmoi/home/.chezmoiscripts/opensuse/run_onchange_before_11-install-opensuse-software.tmpl, .local/share/chezmoi/home/.chezmoiscripts/freebsd/run_onchange_before_11-install-freebsd-packages.tmpl, .local/share/chezmoi/home/.chezmoiscripts/fedora/run_onchange_before_10-install-fedora-dependencies.tmpl, .local/share/chezmoi/home/.chezmoiscripts/debian/run_onchange_before_10-install-debian-dependencies.tmpl, .local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_before_10_install-darwin-dependencies.tmpl, .local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_set-wallpaper.tmpl, .local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_20-ensure-zsh-macos.tmpl, .local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_10_configure-macos.tmpl, .local/share/chezmoi/home/.chezmoiscripts/centos/run_onchange_before_10-install-centos-dependencies.tmpl, .local/share/chezmoi/home/.chezmoiscripts/archlinux/run_onchange_before_10_install-archlinux-dependencies.tmpl, .local/share/chezmoi/home/Library/Fonts/run_onchange_after_add-fonts.tmpl
This commit is contained in:
parent
3af4eebe63
commit
acfdf2da5b
19 changed files with 38 additions and 13 deletions
|
@ -1,3 +1,4 @@
|
|||
{{- if .host.distro.id "archlinux" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# universal/essential-packages hash: {{ include (joinPath ".chezmoitemplates" "universal" "essential-packages") | sha256sum }}
|
||||
|
@ -40,3 +41,4 @@ if ! command -v yay > /dev/null; then
|
|||
logg 'Installing yay via `sudo makepkg -si`'
|
||||
sudo makepkg -si
|
||||
fi
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .host.distro.id "centos" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# universal/essential-packages hash: {{ include (joinPath ".chezmoitemplates" "universal" "essential-packages") | sha256sum }}
|
||||
|
@ -22,3 +23,4 @@ logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}'
|
|||
|
||||
### Install base dependencies
|
||||
sudo dnf install -y {{ $packages | sortAlpha | uniq | join " " -}}
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .host.distro.family "darwin" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -x
|
||||
|
@ -938,3 +939,4 @@ done
|
|||
|
||||
logg 'Done applying macOS settings'
|
||||
logg info 'Some of these changes may require a logout/restart to take effect'
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .host.distro.family "darwin" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
{{- includeTemplate "universal/logg" }}
|
||||
|
@ -14,3 +15,4 @@ if [[ ! -e /usr/local/bin/zsh ]]; then
|
|||
fi
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .host.distro.family "darwin" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Betelgeuse-macOS wallpaper hash: {{ include (joinPath .chezmoi.homeDir ".local" "src" "betelgeuse" "share" "wallpapers" "Betelgeuse-macOS" "contents" "source.png") | sha256sum }}
|
||||
|
@ -8,3 +9,4 @@ if command -v m > /dev/null && [ -f "$HOME/.local/src/betelgeuse/share/wallpaper
|
|||
else
|
||||
logg warn 'Either `m` or the macOS default wallpaper is missing.'
|
||||
fi
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .host.distro.family "darwin" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# darwin/Brewfile hash: {{ include (joinPath ".chezmoitemplates" "darwin" "Brewfile") | sha256sum }}
|
||||
|
@ -16,3 +17,4 @@ if command -v brew > /dev/null; then
|
|||
else
|
||||
logg error '`brew` was not found in the PATH'
|
||||
fi
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .host.distro.id "debian" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# universal/essential-packages hash: {{ include (joinPath ".chezmoitemplates" "universal" "essential-packages") | sha256sum }}
|
||||
|
@ -43,3 +44,4 @@ logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}'
|
|||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends {{ $packages | sortAlpha | uniq | join " " -}}
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .host.distro.id "fedora" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# universal/essential-packages hash: {{ include (joinPath ".chezmoitemplates" "universal" "essential-packages") | sha256sum }}
|
||||
|
@ -22,3 +23,4 @@ logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}'
|
|||
|
||||
### Install base dependencies
|
||||
sudo dnf install -y {{ $packages | sortAlpha | uniq | join " " -}}
|
||||
{{ end -}}
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .host.distro.id "freebsd" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# universal/essential-packages hash: {{ include (joinPath ".chezmoitemplates" "universal" "essential-packages") | sha256sum }}
|
||||
|
@ -22,3 +23,4 @@ logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}'
|
|||
|
||||
### Install base dependencies
|
||||
sudo pkg install -y {{ $packages | sortAlpha | uniq | join " " -}}
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .host.distro.id "opensuse" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# universal/essential-packages hash: {{ include (joinPath ".chezmoitemplates" "universal" "essential-packages") | sha256sum }}
|
||||
|
@ -22,3 +23,4 @@ logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}'
|
|||
|
||||
### Install base dependencies
|
||||
sudo zypper install -y {{ $packages | sortAlpha | uniq | join " " -}}
|
||||
{{ end -}}
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .host.distro.id "ubuntu" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# universal/essential-packages hash: {{ include (joinPath ".chezmoitemplates" "universal" "essential-packages") | sha256sum }}
|
||||
|
@ -43,3 +44,4 @@ logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}'
|
|||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends {{ $packages | sortAlpha | uniq | join " " -}}
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
{{- if false }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eufo pipefail
|
||||
|
||||
|
@ -20,4 +20,4 @@ logg info 'Updating Aqua'
|
|||
aqua update-aqua
|
||||
logg info 'Installing Aqua dependencies (if any are defined)'
|
||||
aqua install -a
|
||||
{{- end }}
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env sh
|
||||
{{- if false }}
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# crontab config hash: {{ include (joinPath .chezmoi.homeDir ".config" "crontab" "config")| sha256sum }}
|
||||
|
||||
|
@ -8,5 +8,4 @@
|
|||
|
||||
logg 'Installing crontab jobs'
|
||||
crontab < "$XDG_CONFIG_HOME/crontab/config"
|
||||
{{- end }}
|
||||
# TODO
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
{{- if eq .host.headless true }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# .zshrc hash: {{ include (joinPath .chezmoi.homeDir ".zshrc")| sha256sum }}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
|||
|
||||
### Initialize ZSH so plugin bootstrap process is done ahead of time
|
||||
if command -v zsh > /dev/null; then
|
||||
logg 'Bootstrapping ZSH plugin system'
|
||||
# logg 'Bootstrapping ZSH plugin system'
|
||||
exec zsh && exit 0
|
||||
fi
|
||||
{{- end -}}
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if (ne .host.distro.family "windows") }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
{{- includeTemplate "universal/profile" }}
|
||||
|
@ -32,3 +33,4 @@ ensurePackageManagerHomebrew() {
|
|||
fi
|
||||
}
|
||||
ensurePackageManagerHomebrew
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if (ne .host.distro.family "windows") }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
{{- includeTemplate "universal/profile" }}
|
||||
|
@ -49,3 +50,4 @@ if ! command -v zx > /dev/null; then
|
|||
else
|
||||
logg '`zx` is already installed'
|
||||
fi
|
||||
{{ end -}}
|
|
@ -1,3 +1,3 @@
|
|||
{{- if (eq .host.distro.family "windows") }}
|
||||
#!/usr/bin/env bash
|
||||
{{- if eq .host.distro.id "windows" }}
|
||||
{{- end }}
|
||||
{{ end -}}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{{- if (eq .host.distro.family "windows") }}
|
||||
#!/usr/bin/env bash
|
||||
{{- if eq .host.distro.id "windows" }}
|
||||
{{- end }}
|
||||
{{ end -}}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
find "$HOME/.local/share/fonts" -type f | while read FONT_FILE; do
|
||||
BASENAME="$(basename "$FONT_FILE")"
|
||||
if [ ! -f "$HOME/Library/Fonts/$BASENAME" ] || [ "$(openssl sha256 "$HOME/Library/Fonts/$BASENAME" | sed 's/.*= //')" != "$(openssl sha256 "$FONT_FILE" | sed 's/.*= //')" ]; then
|
||||
logg info 'Adding `'"$BASENAME"'` to ~/Library/Fonts'
|
||||
logg info 'Adding '"$BASENAME"' to ~/Library/Fonts'
|
||||
cp "$FONT_FILE" "$HOME/Library/Fonts/$BASENAME"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue