comparison .chezmoiscripts/run_onchange_after_20-install-asdf-plugins.sh.tmpl @ 663:fdce323431f4

Add asdf and config for python, neovim and direnv
author zegervdv <zegervdv@me.com>
date Tue, 27 Sep 2022 05:55:05 +0000
parents
children c6b8132ce55f
comparison
equal deleted inserted replaced
662:b137de67217b 663:fdce323431f4
1 {{ if (or (eq .chezmoi.os "linux") (eq .chezmoi.os "darwin")) -}}
2 #!/usr/bin/env bash
3
4 # asdf globals tools hash: {{ include "dot_tool-versions" | sha256sum }}
5
6 asdf_plugin_add() {
7 if ! asdf plugin-list | grep -Fq "$1"
8 then
9 asdf plugin-add "$1"
10 else
11 echo "asdf plugin $1 already installed"
12 fi
13 }
14
15 asdf_plugin_add python
16 asdf_plugin_add neovim
17 asdf_plugin_add direnv
18
19 asdf install
20
21 {{ end -}}