Mercurial > dotfiles
view .chezmoiscripts/run_onchange_after_20-install-asdf-plugins.sh.tmpl @ 745:10e3f300baea
feat: add excludes for centos machines
author | Zeger Van de Vannet <zegervdv@me.com> |
---|---|
date | Mon, 19 Dec 2022 08:09:38 +0100 |
parents | 6aabd0b8d766 |
children | 1896bcf3fdb8 |
line wrap: on
line source
{{ if (and (or (eq .chezmoi.os "linux") (eq .chezmoi.os "darwin")) (ne .chezmoi.osRelease.id "centos")) -}} #!/usr/bin/env bash # asdf globals tools hash: {{ include "dot_tool-versions" | sha256sum }} ASDF_INSTALL="$HOME/.asdf" ASDF_VERSION="v0.10.2" if [[ -d "$ASDF_INSTALL" ]] then cd "$ASDF_INSTALL" git pull git checkout "$ASDF_VERSION" else git clone https://github.com/asdf-vm/asdf.git "$ASDF_INSTALL" --branch="$ASDF_VERSION" fi source ${ASDF_INSTALL}/asdf.sh asdf_plugin_add() { if ! asdf plugin-list | grep -Fq "$1" then asdf plugin-add "$1" else echo "asdf plugin $1 already installed" fi } asdf_plugin_add python asdf_plugin_add neovim asdf_plugin_add direnv asdf_plugin_add rust asdf_plugin_add sqlite asdf install asdf direnv setup --shell zsh --version latest asdf reshim {{ end -}}