1
0
chezmoi/home/.chezmoiscripts/run_once_after_50-finalize-latex.sh.tmpl

27 lines
438 B
Cheetah
Raw Normal View History

2024-05-07 23:17:46 +02:00
#!{{ lookPath "bash" }}
2024-03-05 22:47:14 +01:00
# 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"
}
2024-03-08 19:26:18 +01:00
# Environment variables
TEXMFDIR=${HOME}/texmf/tex/latex
2024-08-02 16:33:15 +02:00
{{- if (ne .hasLatex false) }}
2024-03-08 17:49:22 +01:00
log "Begin LaTeX repo initialization"
2024-03-05 22:47:14 +01:00
2024-03-08 19:26:18 +01:00
texhash "${TEXMFDIR}"
2024-03-05 22:47:14 +01:00
2024-03-08 17:49:22 +01:00
log "Finish LaTeX repo initialization"
{{ end -}}
2024-03-05 22:47:14 +01:00