Mercurial > dotfiles
comparison .chezmoiscripts/run_once_after_20-install-asdf-plugins.sh.tmpl @ 808:459e70c99f4c
ci: add test image
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 03 Dec 2023 22:24:26 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
807:fa76b30a3c2f | 808:459e70c99f4c |
---|---|
1 {{ if (or (eq .chezmoi.os "darwin") (and (eq .chezmoi.os "linux") (ne .chezmoi.arch "arm64") (ne .chezmoi.osRelease.id "centos"))) -}} | |
2 #!/usr/bin/env bash | |
3 | |
4 # asdf globals tools hash: {{ include "dot_tool-versions" | sha256sum }} | |
5 | |
6 ASDF_INSTALL="$HOME/.asdf" | |
7 ASDF_VERSION="v0.10.2" | |
8 | |
9 if [[ -d "$ASDF_INSTALL" ]] | |
10 then | |
11 cd "$ASDF_INSTALL" | |
12 git pull | |
13 git checkout "$ASDF_VERSION" | |
14 else | |
15 git clone https://github.com/asdf-vm/asdf.git "$ASDF_INSTALL" --branch="$ASDF_VERSION" | |
16 fi | |
17 | |
18 source ${ASDF_INSTALL}/asdf.sh | |
19 | |
20 asdf_plugin_add() { | |
21 if ! asdf plugin-list | grep -Fq "$1" | |
22 then | |
23 asdf plugin-add "$1" | |
24 else | |
25 echo "asdf plugin $1 already installed" | |
26 fi | |
27 } | |
28 | |
29 asdf_plugin_add python | |
30 asdf_plugin_add neovim | |
31 asdf_plugin_add direnv | |
32 asdf_plugin_add rust | |
33 asdf_plugin_add sqlite | |
34 | |
35 asdf install | |
36 asdf direnv setup --shell zsh --version latest | |
37 | |
38 asdf reshim | |
39 | |
40 {{ end -}} |