Mercurial > dotfiles
view .chezmoiscripts/run_onchange_after_20-install-asdf-plugins.sh.tmpl @ 801:16d86895ac4b
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 ? v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0)
- [github.com/JohnnyMorganz/StyLua: v0.18.1 ? v0.19.0](https://github.com/JohnnyMorganz/StyLua/compare/v0.18.1...v0.19.0)
- [github.com/pre-commit/mirrors-prettier: v3.0.2 ? v3.1.0](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.2...v3.1.0)
author | pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> |
---|---|
date | Mon, 13 Nov 2023 18:18:57 +0000 |
parents | 1896bcf3fdb8 |
children |
line wrap: on
line source
{{ if (or (eq .chezmoi.os "darwin") (and (eq .chezmoi.os "linux") (ne .chezmoi.arch "arm64") (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 -}}