setup
1#!/usr/bin/env bash
2
3set -euo pipefail
4
5if ! command -v mise >/dev/null 2>&1; then
6 curl -fsSL https://mise.run | sh
7fi
8
9export PATH="$HOME/.local/bin:$HOME/.local/share/mise/shims:$PATH"
10
11mise trust "$PWD/mise.toml"
12mise install
13
14profile="$HOME/.profile"
15shims_path='export PATH="$HOME/.local/bin:$HOME/.local/share/mise/shims:$PATH"'
16if ! grep -Fqx "$shims_path" "$profile" 2>/dev/null; then
17 printf '\n%s\n' "$shims_path" >> "$profile"
18fi