From 03de9e2ae7493a721e3cc2ce257b31cf93a30d83 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 5 Mar 2024 22:47:14 +0100 Subject: [PATCH] Up. --- ...ternal.toml => .chezmoiexternal.toml.tmpl} | 19 ++++++++++++++ ...nge_after_20-install-asdf-plugins.sh.tmpl} | 0 ...un_onchange_after_30-install-nvim.sh.tmpl} | 0 ...n_onchange_after_40-install-shell.sh.tmpl} | 0 ...n_onchange_after_50-finalize-latex.sh.tmpl | 26 +++++++++++++++++++ 5 files changed, 45 insertions(+) rename home/{.chezmoiexternal.toml => .chezmoiexternal.toml.tmpl} (72%) rename home/.chezmoiscripts/{run_onchange_after_11-install-asdf-plugins.sh.tmpl => run_onchange_after_20-install-asdf-plugins.sh.tmpl} (100%) rename home/.chezmoiscripts/{run_onchange_after_80-install-nvim.sh.tmpl => run_onchange_after_30-install-nvim.sh.tmpl} (100%) rename home/.chezmoiscripts/{run_onchange_after_20-prepare-shell.sh.tmpl => run_onchange_after_40-install-shell.sh.tmpl} (100%) create mode 100644 home/.chezmoiscripts/run_onchange_after_50-finalize-latex.sh.tmpl 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 }} +