diff --git a/home/.chezmoiexternal.toml b/home/.chezmoiexternal.toml.tmpl similarity index 72% rename from home/.chezmoiexternal.toml rename to home/.chezmoiexternal.toml.tmpl index f14b05d..834fb01 100644 --- a/home/.chezmoiexternal.toml +++ b/home/.chezmoiexternal.toml.tmpl @@ -54,5 +54,24 @@ url = "https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh" refreshPeriod = "168h" +{{- if ne .latex false -}} +["texmf/tex/latex/latex-homework"] + type = "git-repo" + url = "https://git.jefflance.me/jeff/latex-homework.git" + refreshPeriod = "168h" +["texmf/tex/latex/latex-beamer-themes"] + type = "git-repo" + url = "https://git.jefflance.me/jeff/latex-beamer-themes.git" + refreshPeriod = "168h" +["texmf/tex/latex/emerald"] + type = "git-repo" + url = "https://git.jefflance.me/jeff/emerald.git" + refreshPeriod = "168h" + +[".asy"] + type = "git-repo" + url = "https://git.jefflance.me/jeff/asymptote-config.git" + refreshPeriod = "168h" +{{- end }} diff --git a/home/.chezmoiscripts/run_onchange_after_11-install-asdf-plugins.sh.tmpl b/home/.chezmoiscripts/run_onchange_after_20-install-asdf-plugins.sh.tmpl similarity index 100% rename from home/.chezmoiscripts/run_onchange_after_11-install-asdf-plugins.sh.tmpl rename to home/.chezmoiscripts/run_onchange_after_20-install-asdf-plugins.sh.tmpl diff --git a/home/.chezmoiscripts/run_onchange_after_80-install-nvim.sh.tmpl b/home/.chezmoiscripts/run_onchange_after_30-install-nvim.sh.tmpl similarity index 100% rename from home/.chezmoiscripts/run_onchange_after_80-install-nvim.sh.tmpl rename to home/.chezmoiscripts/run_onchange_after_30-install-nvim.sh.tmpl diff --git a/home/.chezmoiscripts/run_onchange_after_20-prepare-shell.sh.tmpl b/home/.chezmoiscripts/run_onchange_after_40-install-shell.sh.tmpl similarity index 100% rename from home/.chezmoiscripts/run_onchange_after_20-prepare-shell.sh.tmpl rename to home/.chezmoiscripts/run_onchange_after_40-install-shell.sh.tmpl diff --git a/home/.chezmoiscripts/run_onchange_after_50-finalize-latex.sh.tmpl b/home/.chezmoiscripts/run_onchange_after_50-finalize-latex.sh.tmpl new file mode 100644 index 0000000..b2baeb5 --- /dev/null +++ b/home/.chezmoiscripts/run_onchange_after_50-finalize-latex.sh.tmpl @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +# Logging function +log() { + printf "$(tput setaf 4)$(tput bold)>>>>> %s <<<<<$(tput sgr0)\n" "$1" +} + +inf() { + printf "$(tput setaf 2)╚═══ᐳ $(tput sgr 0 1)$(tput setaf 2)%s$(tput sgr0)\n" "$1" +} + + + +# Environment variables +TEXMF=texmf/tex/latex + + + +{{- if (ne .latex false) -}} +log "Begin LaTeX initialization" + +texhash "${HOME}/${TEXMF}" + +log "Finish LaTeX initialization" +{{- end }} +