32 lines
673 B
Cheetah
32 lines
673 B
Cheetah
#!{{ lookPath "bash" }}
|
|
|
|
# title
|
|
title="IDE's configuration"
|
|
|
|
# include lib
|
|
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
|
|
|
|
|
|
{{- if (ne .hasIDE false) }}
|
|
|
|
log "Begin ${title}"
|
|
|
|
inf "install tinytex for Quarto"
|
|
if [[ $(command -v quarto) ]]; then
|
|
quarto install tinytex
|
|
fi
|
|
|
|
python3 -Im ipykernel install --user --name python-asdf --display-name "Python (asdf)"
|
|
|
|
# R
|
|
Rscript -e 'install.packages("IRkernel", repos="https://cloud.r-project.org", lib=Sys.getenv("R_LIBS_USER"))'
|
|
Rscript -e 'IRkernel::installspec(user = TRUE)'
|
|
|
|
# Julia
|
|
julia -e 'using Pkg; Pkg.add("IJulia"); Pkg.build("IJulia")'
|
|
|
|
log "${title} done"
|
|
|
|
{{- end }}
|
|
|