Skip to content

Commit 48ed8ee

Browse files
docs: align env setup with .shell_secrets
1 parent 9ed6164 commit 48ed8ee

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ This plugin never writes secrets to disk. In `opencode.jsonc`, the token is alwa
104104

105105
### Recommended setup (zsh, macOS/Linux)
106106

107-
Keep secrets in a separate file and source it from your shell init.
108-
109-
Create `~/.config/opencode/secrets.zsh`:
107+
Use your existing shell secrets file. For example, if you already source `~/.shell_secrets` from
108+
`~/.zshrc`, add:
110109

111110
```zsh
112111
export FOUNDRY_URL='https://YOUR-STACK.palantirfoundry.com'
@@ -116,14 +115,14 @@ export FOUNDRY_TOKEN='YOUR_TOKEN'
116115
Lock it down:
117116

118117
```bash
119-
chmod 600 ~/.config/opencode/secrets.zsh
118+
chmod 600 ~/.shell_secrets
120119
```
121120

122-
Source it from `~/.zshrc`:
121+
Ensure `~/.zshrc` sources it:
123122

124123
```zsh
125-
if [ -f "$HOME/.config/opencode/secrets.zsh" ]; then
126-
source "$HOME/.config/opencode/secrets.zsh"
124+
if [ -f "$HOME/.shell_secrets" ]; then
125+
source "$HOME/.shell_secrets"
127126
fi
128127
```
129128

0 commit comments

Comments
 (0)