Mercurial > dotfiles
comparison .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 |
comparison
equal
deleted
inserted
replaced
1098:1d163e43854a | 1100:ff1fe85fc5bb |
---|---|
1 {{ if (and (eq .chezmoi.os "linux") (or (eq .chezmoi.osRelease.name "Ubuntu" ) (eq .chezmoi.osRelease.name "Fedora Linux Asahi Remix"))) -}} | 1 {{ if (and (eq .chezmoi.os "linux") (or (eq .chezmoi.osRelease.name "Ubuntu" ) (eq .chezmoi.osRelease.name "Fedora Linux Asahi Remix"))) -}} |
2 #!/usr/bin/env bash | 2 #!/usr/bin/env bash |
3 | 3 |
4 set -xe | 4 set -xe |
5 | 5 |
6 # tool-versions hash: {{ include "dot_tool-versions" | sha256sum }} | 6 # tool-versions hash: {{ include "dot_config/mise/config.toml" | sha256sum }} |
7 {{ $version := "2025.5.6" }} | 7 {{ $version := "2025.6.8" }} |
8 | 8 |
9 | 9 |
10 {{ $arch := "x64" }} | 10 {{ $arch := "x64" }} |
11 {{ if (eq .chezmoi.arch "amd64") -}} | 11 {{ if (eq .chezmoi.arch "amd64") -}} |
12 {{ $arch = "x64" }} | 12 {{ $arch = "x64" }} |
20 | 20 |
21 export PYTHON_CONFIGURE_OPTS="--enable-shared" | 21 export PYTHON_CONFIGURE_OPTS="--enable-shared" |
22 $RTX_BIN install --verbose --yes | 22 $RTX_BIN install --verbose --yes |
23 | 23 |
24 mkdir -p $XDG_CONFIG_HOME/direnv/lib | 24 mkdir -p $XDG_CONFIG_HOME/direnv/lib |
25 $RTX_BIN direnv activate > $XDG_CONFIG_HOME/direnv/lib/use_rtx.sh | 25 FISH_COMPLETIONS=$HOME/.config/fish/completions |
26 $RTX_BIN completion zsh > ~/.zsh/completetions | 26 $RTX_BIN completion fish > $FISH_COMPLETIONS/mise.fish |
27 $RTX_BIN exec ripgrep -- rg --generate=complete-fish > $FISH_COMPLETIONS/rg.fish | |
28 $RTX_BIN exec fd -- fd --gen-completions fish > $FISH_COMPLETIONS/fd.fish | |
27 | 29 |
28 | 30 |
29 {{ end }} | 31 {{ end }} |