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 }}