up
This commit is contained in:
31
home/.chezmoiscripts/run_once_after_30-devel-config.sh.tmpl
Normal file
31
home/.chezmoiscripts/run_once_after_30-devel-config.sh.tmpl
Normal file
@@ -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"
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user