amp: add orb setup

Amolith created

Change summary

.agents/setup         | 18 ++++++++++++++++++
.agents/setup.license |  3 +++
2 files changed, 21 insertions(+)

Detailed changes

.agents/setup 🔗

@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+if ! command -v mise >/dev/null 2>&1; then
+	curl -fsSL https://mise.run | sh
+fi
+
+export PATH="$HOME/.local/bin:$HOME/.local/share/mise/shims:$PATH"
+
+mise trust "$PWD/mise.toml"
+mise install
+
+profile="$HOME/.profile"
+shims_path='export PATH="$HOME/.local/bin:$HOME/.local/share/mise/shims:$PATH"'
+if ! grep -Fqx "$shims_path" "$profile" 2>/dev/null; then
+	printf '\n%s\n' "$shims_path" >> "$profile"
+fi

.agents/setup.license 🔗

@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
+
+SPDX-License-Identifier: CC0-1.0