comparison .chezmoiscripts/run_onchange_after_16-install-mise-and-plugins.sh.tmpl @ 1093:9732db099471 draft

feat: enable dotfiles on aarch64/Fedora
author "Zeger Van de Vannet <zeger@vandevan.net>"
date Sun, 18 May 2025 16:28:58 +0200
parents 1fcc8b0ca8e2
children
comparison
equal deleted inserted replaced
1092:6fb43864241b 1093:9732db099471
1 {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}} 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_tool-versions" | sha256sum }}
7 {{ $version := "2025.5.6" }}
8
9
10 {{ $arch := "x64" }}
11 {{ if (eq .chezmoi.arch "amd64") -}}
12 {{ $arch = "x64" }}
13 {{ else }}
14 {{ $arch = "arm64" }}
15 {{ end }}
7 16
8 : "${XDG_CONFIG_HOME:=$HOME/.config}" 17 : "${XDG_CONFIG_HOME:=$HOME/.config}"
9 RTX_BIN=$HOME/bin/mise 18 RTX_BIN=$HOME/bin/mise
10 curl -fsSL https://github.com/jdx/mise/releases/download/v2025.2.7/mise-v2025.2.7-linux-x64 | sudo install -m 755 /dev/stdin $RTX_BIN 19 curl -fsSL https://github.com/jdx/mise/releases/download/v{{ $version }}/mise-v{{ $version }}-linux-{{ $arch }} | sudo install -m 755 /dev/stdin $RTX_BIN
11 20
12 export PYTHON_CONFIGURE_OPTS="--enable-shared" 21 export PYTHON_CONFIGURE_OPTS="--enable-shared"
13 $RTX_BIN install --verbose --yes 22 $RTX_BIN install --verbose --yes
14 23
15 mkdir -p $XDG_CONFIG_HOME/direnv/lib 24 mkdir -p $XDG_CONFIG_HOME/direnv/lib