-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.local.sh
More file actions
executable file
Β·49 lines (42 loc) Β· 1.5 KB
/
Copy pathinstall.local.sh
File metadata and controls
executable file
Β·49 lines (42 loc) Β· 1.5 KB
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
42
43
44
45
46
47
48
49
#!/bin/bash
set -e
OPENCODE_DIR="$HOME/.config/opencode"
THEMES_DIR="$OPENCODE_DIR/themes"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
THEMES_SRC="$SCRIPT_DIR/themes"
echo "π¦ Installing Vitesse Theme for OpenCode (Local)..."
if [ ! -d "$THEMES_SRC" ]; then
echo "β Error: themes directory not found at $THEMES_SRC"
echo " Make sure you're running this script from the opencode-theme-vitesse repository root."
exit 1
fi
if ! ls "$THEMES_SRC"/vitesse*.json >/dev/null 2>&1; then
echo "β Error: No vitesse theme files found in $THEMES_SRC"
exit 1
fi
mkdir -p "$THEMES_DIR"
echo "π Copying Vitesse theme files from local repository..."
cp -fv "$THEMES_SRC"/vitesse*.json "$THEMES_DIR/"
echo ""
echo "β
Installation complete!"
echo ""
echo "π Installed themes to: $THEMES_DIR"
echo " - vitesse.json"
echo " - vitesse-soft.json"
echo " - vitesse-dark.json"
echo " - vitesse-dark-soft.json"
echo " - vitesse-black.json"
echo " - vitesse-light.json"
echo " - vitesse-light-soft.json"
echo ""
echo "π To activate the theme, run in OpenCode:"
echo " /theme vitesse"
echo ""
echo "π‘ Available themes:"
echo " /theme vitesse # Auto-switch (light/dark)"
echo " /theme vitesse-soft # Auto-switch (soft)"
echo " /theme vitesse-dark # Dark"
echo " /theme vitesse-dark-soft # Dark (soft)"
echo " /theme vitesse-black # Dark (black)"
echo " /theme vitesse-light # Light"
echo " /theme vitesse-light-soft # Light (soft)"