chore: update config path from ~/.config/opencode to ~/.opencode
This commit is contained in:
10
README.md
10
README.md
@@ -27,7 +27,7 @@ This repository contains custom OpenCode configuration including commands, skill
|
|||||||
### 1. Clone Configuration
|
### 1. Clone Configuration
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://git.digitevents.com/ai/opencode.git ~/.config/opencode
|
git clone https://git.digitevents.com/ai/opencode.git ~/.opencode
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Configure Environment Variables
|
### 2. Configure Environment Variables
|
||||||
@@ -36,7 +36,7 @@ Create `env.sh` file (not tracked in git) or use the one from iCloud:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Option 1: Create manually
|
# Option 1: Create manually
|
||||||
cat > ~/.config/opencode/env.sh << 'EOF'
|
cat > ~/.opencode/env.sh << 'EOF'
|
||||||
# OpenCode Environment Variables
|
# OpenCode Environment Variables
|
||||||
export REF_API_KEY="your-ref-api-key"
|
export REF_API_KEY="your-ref-api-key"
|
||||||
export FIGMA_API_KEY="your-figma-api-key"
|
export FIGMA_API_KEY="your-figma-api-key"
|
||||||
@@ -57,7 +57,7 @@ Add to your `~/.zshrc` or `~/.bashrc`:
|
|||||||
source ~/Library/Mobile\ Documents/com~apple~CloudDocs/opencode-env.sh
|
source ~/Library/Mobile\ Documents/com~apple~CloudDocs/opencode-env.sh
|
||||||
|
|
||||||
# Or load from local file
|
# Or load from local file
|
||||||
[[ -f ~/.config/opencode/env.sh ]] && source ~/.config/opencode/env.sh
|
[[ -f ~/.opencode/env.sh ]] && source ~/.opencode/env.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Then reload your shell:
|
Then reload your shell:
|
||||||
@@ -100,7 +100,7 @@ Configure MCP services in `opencode.json`:
|
|||||||
### Push Changes
|
### Push Changes
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd ~/.config/opencode
|
cd ~/.opencode
|
||||||
git add .
|
git add .
|
||||||
git commit -m "chore: update config"
|
git commit -m "chore: update config"
|
||||||
git push
|
git push
|
||||||
@@ -109,7 +109,7 @@ git push
|
|||||||
### Pull Changes
|
### Pull Changes
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd ~/.config/opencode
|
cd ~/.opencode
|
||||||
git pull
|
git pull
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user