-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmiseconfig.sh
More file actions
executable file
·35 lines (29 loc) · 818 Bytes
/
miseconfig.sh
File metadata and controls
executable file
·35 lines (29 loc) · 818 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
#!/usr/bin/env bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CONFIG_FILE="$DIR/config/mise/config.toml"
# Create config.toml if it doesn't exist
if [[ ! -f "$CONFIG_FILE" ]]; then
echo "📦 Creating mise config.toml..."
cat > "$CONFIG_FILE" << 'EOF'
# This file is gitignored - it contains machine-specific tool versions.
#
# Versioned configuration lives in conf.d/:
# - path.toml: PATH additions (~/.cargo/bin, etc.)
# - dotfiles.toml: Tools managed by dotfiles (fnox, goss, hk, pkl)
#
# Add your language runtimes below. Example:
#
# [tools]
# node = "lts"
# ruby = "3.4"
# python = "3.12"
# go = "latest"
[tools]
[settings]
EOF
echo "✅ Created $CONFIG_FILE"
echo " Edit it to add your language runtimes."
else
echo "📦 mise config.toml already exists"
fi