From 0a1a7fbe647c9092e1a23f9d75a734c889b1f8d1 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 12 Aug 2025 19:48:44 +0200 Subject: [PATCH] up --- .../run_once_after_30-devel-config.sh.tmpl | 31 +++++++++++++++++++ .../run_once_after_30-finalize-nvim.sh.tmpl | 20 ------------ 2 files changed, 31 insertions(+), 20 deletions(-) create mode 100644 home/.chezmoiscripts/run_once_after_30-devel-config.sh.tmpl delete mode 100644 home/.chezmoiscripts/run_once_after_30-finalize-nvim.sh.tmpl diff --git a/home/.chezmoiscripts/run_once_after_30-devel-config.sh.tmpl b/home/.chezmoiscripts/run_once_after_30-devel-config.sh.tmpl new file mode 100644 index 0000000..70a7525 --- /dev/null +++ b/home/.chezmoiscripts/run_once_after_30-devel-config.sh.tmpl @@ -0,0 +1,31 @@ +#!{{ lookPath "bash" }} + +# include lib +. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh + +# Lua version +lua_version="latest:5.1" + + +{{- if (ne .hasNVim false) }} + + log "Set Lua version for NVim" + + inf "Lua ${lua_version}..." + asdf install lua ${lua_version} + asdf set lua ${lua_version} + + log "Lua version for NVim set" + +{{- end }} + +log "Set Jupyter kernels" + +inf "R kernel" +Rscript -e "install.packages('IRkernel', repos='https://cloud.r-project.org')" \ + -e "IRkernel::installspec(user = FALSE)" + +inf "Julia kernel" +julia -e 'using Pkg; Pkg.add("IJulia")' + +log "Jypyter kernels set" diff --git a/home/.chezmoiscripts/run_once_after_30-finalize-nvim.sh.tmpl b/home/.chezmoiscripts/run_once_after_30-finalize-nvim.sh.tmpl deleted file mode 100644 index 3af8c3e..0000000 --- a/home/.chezmoiscripts/run_once_after_30-finalize-nvim.sh.tmpl +++ /dev/null @@ -1,20 +0,0 @@ -#!{{ lookPath "bash" }} - -# include lib -. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh - -# Lua version -lua_version="latest:5.1" - - -{{- if (ne .hasNVim false) }} - - log "Finalize NVim configuration" - - inf "installing Lua ${lua_version}..." - asdf install lua ${lua_version} - asdf set lua ${lua_version} - - log "Finish NVim installation" - -{{- end }}