-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·30 lines (24 loc) · 767 Bytes
/
install.sh
File metadata and controls
executable file
·30 lines (24 loc) · 767 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
#!/bin/bash
# Carbonfox Theme Installer for OpenCode
set -e
THEME_URL="https://raw.githubusercontent.com/devatnull/opencode-carbonfox-theme/main/carbonfox.json"
THEME_DIR="$HOME/.config/opencode/themes"
THEME_FILE="$THEME_DIR/carbonfox.json"
echo "Installing Carbonfox theme for OpenCode..."
# Create directory
mkdir -p "$THEME_DIR"
# Download theme
if command -v curl &> /dev/null; then
curl -fsSL -o "$THEME_FILE" "$THEME_URL"
elif command -v wget &> /dev/null; then
wget -q -O "$THEME_FILE" "$THEME_URL"
else
echo "Error: curl or wget required"
exit 1
fi
echo "Theme installed to: $THEME_FILE"
echo ""
echo "Add to ~/.config/opencode/opencode.json:"
echo ' "theme": "carbonfox"'
echo ""
echo "Then restart OpenCode or use /theme to switch."