-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
30 lines (24 loc) · 924 Bytes
/
start.sh
File metadata and controls
30 lines (24 loc) · 924 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
# Initialize Rust
cargo init
# Install CLI and init
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git
printf "y\nsh\n" | specify init --here --integration opencode
# Copy template files from vibe-code-template and merge .opencode
TEMP_DIR=$(mktemp -d)
git clone https://github.com/loxoron218/vibe-code-template.git "$TEMP_DIR"
cp "$TEMP_DIR"/AGENTS.md "$TEMP_DIR"/clippy.toml "$TEMP_DIR"/LICENSE "$TEMP_DIR"/rustfmt.toml "$TEMP_DIR"/lints.toml .
cp -r "$TEMP_DIR"/.opencode/. ./.opencode/
rm -rf "$TEMP_DIR"
# Add lints from lints.toml to Cargo.toml
cat lints.toml >> Cargo.toml
rm lints.toml
# Merge opencode files to home
TARGET="/home/$(whoami)/.config/opencode"
mkdir -p "$TARGET"
cp -r ./.opencode/. "$TARGET"
rm -rf ./.opencode
# Add specify to gitignore
echo ".specify/scripts" >> .gitignore
echo ".specify/templates" >> .gitignore
# Removes the script file after completion
rm "$0"