Mercurial > dotfiles
view .chezmoiscripts/run_onchange_after_16-install-mise-and-plugins.sh.tmpl @ 1100:ff1fe85fc5bb draft
feat: install devtools via mise globally
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Tue, 01 Jul 2025 20:12:46 +0200 |
parents | 9732db099471 |
children |
line wrap: on
line source
{{ if (and (eq .chezmoi.os "linux") (or (eq .chezmoi.osRelease.name "Ubuntu" ) (eq .chezmoi.osRelease.name "Fedora Linux Asahi Remix"))) -}} #!/usr/bin/env bash set -xe # tool-versions hash: {{ include "dot_config/mise/config.toml" | sha256sum }} {{ $version := "2025.6.8" }} {{ $arch := "x64" }} {{ if (eq .chezmoi.arch "amd64") -}} {{ $arch = "x64" }} {{ else }} {{ $arch = "arm64" }} {{ end }} : "${XDG_CONFIG_HOME:=$HOME/.config}" RTX_BIN=$HOME/bin/mise curl -fsSL https://github.com/jdx/mise/releases/download/v{{ $version }}/mise-v{{ $version }}-linux-{{ $arch }} | sudo install -m 755 /dev/stdin $RTX_BIN export PYTHON_CONFIGURE_OPTS="--enable-shared" $RTX_BIN install --verbose --yes mkdir -p $XDG_CONFIG_HOME/direnv/lib FISH_COMPLETIONS=$HOME/.config/fish/completions $RTX_BIN completion fish > $FISH_COMPLETIONS/mise.fish $RTX_BIN exec ripgrep -- rg --generate=complete-fish > $FISH_COMPLETIONS/rg.fish $RTX_BIN exec fd -- fd --gen-completions fish > $FISH_COMPLETIONS/fd.fish {{ end }}