-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·41 lines (29 loc) · 782 Bytes
/
Copy pathsetup
File metadata and controls
executable file
·41 lines (29 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash
set -euo pipefail
# Amp Orbs setup
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$repo_root"
export DISABLE_TELEMETRY=1
export MISE_EXPERIMENTAL=true
export MISE_HTTP_TIMEOUT=120
echo "Installing mise"
mise_bin="$HOME/.local/bin/mise"
if [[ ! -x "$mise_bin" ]]; then
curl https://mise.run/bash | sh
fi
if [[ ! -x "$mise_bin" ]]; then
echo "mise was not installed at $mise_bin" >&2
exit 1
fi
"$mise_bin" trust "$repo_root/mise.toml"
eval "$("$mise_bin" activate bash)"
echo "Installing repository toolchains"
mise install
echo "Installing locked dependencies"
mise exec -- bun install --frozen-lockfile
mise exec -- uv sync --frozen
if [[ ! -f .env ]]; then
cp -- .env.example .env
fi
exec "$SHELL" -l
echo "Orb setup complete"