up
This commit is contained in:
@@ -7,8 +7,7 @@ command = "meld"
|
|||||||
{{ $hasNVim := promptBool "Do i install Neovim " false}}
|
{{ $hasNVim := promptBool "Do i install Neovim " false}}
|
||||||
{{ $hasDevel := promptBool "Do i install programming languages " false }}
|
{{ $hasDevel := promptBool "Do i install programming languages " false }}
|
||||||
{{ $hasLatex := promptBool "Do i install LaTeX " false }}
|
{{ $hasLatex := promptBool "Do i install LaTeX " false }}
|
||||||
{{ $hasVSCode := promptBool "Do i install VSCode " false }}
|
{{ $hasIDE := promptBool "Do i install IDE's " false }}
|
||||||
{{ $hasQuarto := promptBool "Do i install Quarto " false }}
|
|
||||||
[git]
|
[git]
|
||||||
autoCommit = true
|
autoCommit = true
|
||||||
autoPush = true
|
autoPush = true
|
||||||
@@ -16,8 +15,7 @@ autoPush = true
|
|||||||
hasNVim = {{ $hasNVim }}
|
hasNVim = {{ $hasNVim }}
|
||||||
hasDevel = {{ $hasDevel }}
|
hasDevel = {{ $hasDevel }}
|
||||||
hasLatex = {{ $hasLatex }}
|
hasLatex = {{ $hasLatex }}
|
||||||
hasVSCode = {{ $hasVSCode }}
|
hasIDE = {{ $hasIDE }}
|
||||||
hasQuarto = {{ $hasQuarto }}
|
|
||||||
email = {{ $email | quote }}
|
email = {{ $email | quote }}
|
||||||
signingkey = {{ $signingkey | quote }}
|
signingkey = {{ $signingkey | quote }}
|
||||||
|
|
||||||
|
|||||||
@@ -8,15 +8,15 @@
|
|||||||
declare -A plugins
|
declare -A plugins
|
||||||
plugins=(
|
plugins=(
|
||||||
['direnv']=''
|
['direnv']=''
|
||||||
|
['starship']=''
|
||||||
['golang']='https://github.com/asdf-community/asdf-golang.git'
|
['golang']='https://github.com/asdf-community/asdf-golang.git'
|
||||||
['julia']='https://github.com/rkyleg/asdf-julia.git'
|
|
||||||
['lua']='https://github.com/Stratus3D/asdf-lua.git'
|
|
||||||
['nodejs']='https://github.com/asdf-vm/asdf-nodejs.git'
|
['nodejs']='https://github.com/asdf-vm/asdf-nodejs.git'
|
||||||
['opam']='https://github.com/asdf-community/asdf-opam.git'
|
['opam']='https://github.com/asdf-community/asdf-opam.git'
|
||||||
['r']='https://github.com/asdf-community/asdf-r.git'
|
|
||||||
['ruby']='https://github.com/asdf-vm/asdf-ruby.git'
|
['ruby']='https://github.com/asdf-vm/asdf-ruby.git'
|
||||||
['rust']='https://github.com/code-lever/asdf-rust.git'
|
['rust']='https://github.com/code-lever/asdf-rust.git'
|
||||||
['starship']=''
|
['python']='https://github.com/asdf-community/asdf-python.git'
|
||||||
|
['julia']='https://github.com/rkyleg/asdf-julia.git'
|
||||||
|
['r']='https://github.com/asdf-community/asdf-r.git'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,9 +9,10 @@ lua_version="latest:5.1"
|
|||||||
|
|
||||||
{{- if (ne .hasNVim false) }}
|
{{- if (ne .hasNVim false) }}
|
||||||
|
|
||||||
log "Set Lua version for NVim"
|
log "Install Lua version for NVim via asdf"
|
||||||
|
|
||||||
inf "Lua ${lua_version}..."
|
inf "Lua ${lua_version}..."
|
||||||
|
asdf plugin add lua 'https://github.com/Stratus3D/asdf-lua.git'
|
||||||
asdf install lua ${lua_version}
|
asdf install lua ${lua_version}
|
||||||
asdf set lua ${lua_version}
|
asdf set lua ${lua_version}
|
||||||
|
|
||||||
@@ -19,13 +20,3 @@ lua_version="latest:5.1"
|
|||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
log "Set Jupyter kernels"
|
|
||||||
|
|
||||||
inf "R kernel"
|
|
||||||
Rscript -e "install.packages('IRkernel', repos='https://cloud.r-project.org')" \
|
|
||||||
-e "IRkernel::installspec(user = TRUE)"
|
|
||||||
|
|
||||||
inf "Julia kernel"
|
|
||||||
julia -e 'using Pkg; Pkg.add("IJulia")'
|
|
||||||
|
|
||||||
log "Jypyter kernels set"
|
|
||||||
30
home/.chezmoiscripts/run_once_after_30-quarto-config.sh.tmpl
Normal file
30
home/.chezmoiscripts/run_once_after_30-quarto-config.sh.tmpl
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#!{{ lookPath "bash" }}
|
||||||
|
|
||||||
|
# include lib
|
||||||
|
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
|
||||||
|
|
||||||
|
|
||||||
|
{{- if (ne .hasIDE false) }}
|
||||||
|
|
||||||
|
log "Finalize quarto install"
|
||||||
|
|
||||||
|
# inf "Install tinytex"
|
||||||
|
# if [[ $(command -v quarto) ]]; then
|
||||||
|
# quarto install tinytex
|
||||||
|
# fi
|
||||||
|
#
|
||||||
|
# inf "Install python dependencies"
|
||||||
|
# python3 -m pip install jupyter jupyterlab ipykernel matplotlib plotly pandas
|
||||||
|
#
|
||||||
|
# inf "Install Jupyter kernels"
|
||||||
|
# python3 -m ipykernel install --user --name python-asdf --display-name "Python (asdf)"
|
||||||
|
#
|
||||||
|
# Rscript -e "install.packages('IRkernel', repos='https://cloud.r-project.org')" \
|
||||||
|
# -e "IRkernel::installspec(user = FALSE)"
|
||||||
|
#
|
||||||
|
# julia -e 'using Pkg; Pkg.add("IJulia")'
|
||||||
|
|
||||||
|
log "Quarto install complete"
|
||||||
|
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
@@ -16,16 +16,6 @@ inf "installing cargo-update..."
|
|||||||
|
|
||||||
cargo install cargo-update
|
cargo install cargo-update
|
||||||
|
|
||||||
### Install Atuin
|
|
||||||
#inf "installing atuin..."
|
|
||||||
#
|
|
||||||
#cargo install atuin
|
|
||||||
#
|
|
||||||
### Reshim
|
|
||||||
#inf "asdf reshim..."
|
|
||||||
#
|
|
||||||
#asdf reshim
|
|
||||||
|
|
||||||
### Config Zsh ###
|
### Config Zsh ###
|
||||||
inf "installing zim framework"
|
inf "installing zim framework"
|
||||||
|
|
||||||
|
|||||||
@@ -9,11 +9,10 @@ usage() {
|
|||||||
printf "\nUsage:\n"
|
printf "\nUsage:\n"
|
||||||
echo " --base Install base packages"
|
echo " --base Install base packages"
|
||||||
echo " --devel Install development languages"
|
echo " --devel Install development languages"
|
||||||
echo " --nvim Install deps for NeoVim"
|
echo " --nvim Install NeoVim and dependencies"
|
||||||
echo " --zsh Install deps for zsh"
|
echo " --zsh Install zsh and dependencies"
|
||||||
echo " --latex Install deps for latex"
|
echo " --latex Install latex and dependencies"
|
||||||
echo " --quarto Install deps for quarto"
|
echo " --ide Install IDE's"
|
||||||
echo " --vscode Install deps for VSCode"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# packages to install
|
# packages to install
|
||||||
@@ -52,7 +51,6 @@ install_devel() {
|
|||||||
packages+=(
|
packages+=(
|
||||||
gcc-fortran
|
gcc-fortran
|
||||||
go
|
go
|
||||||
lua
|
|
||||||
nodejs
|
nodejs
|
||||||
npm
|
npm
|
||||||
python
|
python
|
||||||
@@ -97,39 +95,20 @@ install_latex() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
install_vscode() {
|
install_ide() {
|
||||||
packages+=(
|
packages+=(
|
||||||
code
|
code
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
install_quarto() {
|
|
||||||
packages+=(
|
|
||||||
quarto-cli-bin
|
quarto-cli-bin
|
||||||
jupyter-nbclient
|
|
||||||
jupyter-nbformat
|
|
||||||
python-jupyter-core
|
|
||||||
python-matplotlib
|
|
||||||
python-pandas
|
|
||||||
python-plotly
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_quarto() {
|
|
||||||
if [[ ! $(command -v quarto) ]]; then
|
|
||||||
install_quarto
|
|
||||||
fi
|
|
||||||
quarto install tinytex
|
|
||||||
}
|
|
||||||
|
|
||||||
# cli options
|
# cli options
|
||||||
BASE=false
|
BASE=false
|
||||||
DEVEL=false
|
DEVEL=false
|
||||||
NVIM=false
|
NVIM=false
|
||||||
ZSH=false
|
ZSH=false
|
||||||
LATEX=false
|
LATEX=false
|
||||||
VSCODE=false
|
IDE=false
|
||||||
QUARTO=false
|
|
||||||
|
|
||||||
if [ "$#" -eq 0 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
usage
|
usage
|
||||||
@@ -143,8 +122,7 @@ while [ "$#" -gt 0 ]; do
|
|||||||
--nvim) NVIM=true ;;
|
--nvim) NVIM=true ;;
|
||||||
--zsh) ZSH=true ;;
|
--zsh) ZSH=true ;;
|
||||||
--latex) LATEX=true ;;
|
--latex) LATEX=true ;;
|
||||||
--vscode) VSCODE=true;;
|
--ide) IDE=true;;
|
||||||
--quarto) QUARTO=true;;
|
|
||||||
*)
|
*)
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
@@ -160,10 +138,10 @@ main() {
|
|||||||
"$NVIM" && install_nvim
|
"$NVIM" && install_nvim
|
||||||
"$ZSH" && install_zsh
|
"$ZSH" && install_zsh
|
||||||
"$LATEX" && install_latex
|
"$LATEX" && install_latex
|
||||||
"$VSCODE" && install_vscode
|
"$IDE" && install_ide
|
||||||
if [[ $QUARTO == true ]]; then
|
if [[ $IDE == true ]]; then
|
||||||
install_quarto
|
|
||||||
configure_quarto
|
configure_quarto
|
||||||
|
configure_jupyter_kernels
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Install yay
|
## Install yay
|
||||||
|
|||||||
Reference in New Issue
Block a user