Skip to content

Instantly share code, notes, and snippets.

@Bryan2333
Last active July 5, 2026 13:30
Show Gist options
  • Select an option

  • Save Bryan2333/1ba75160a6f98c55304c519e917fd0a4 to your computer and use it in GitHub Desktop.

Select an option

Save Bryan2333/1ba75160a6f98c55304c519e917fd0a4 to your computer and use it in GitHub Desktop.
opencode配置
// vim: set shiftwidth=2 tabstop=2:
{
"$schema": "https://opencode.ai/config.json",
"shell": "C:/msys64/usr/bin/bash.exe",
"watcher": {
"ignore": [
"node_modules/**",
"**/node_modules/**",
"dist/**",
"**/dist/**",
"build/**",
"**/build/**",
"coverage/**",
".next/**",
"target/**",
".venv/**",
"__pycache__/**",
".git/**"
]
},
"permission": {
"edit": "ask",
"external_directory": "ask",
"doom_loop": "ask",
"bash": {
"*": "ask",
"wc*": "allow",
"rg*": "allow",
"cat*": "allow",
"xxd*": "allow",
"head*": "allow",
"tail*": "allow",
"grep*": "allow",
"sed -n*": "allow",
"git status*": "allow",
"git diff*": "allow",
"git log*": "allow",
"git show*": "allow",
"git rev-parse*": "allow",
"git ls-files*": "allow",
"git branch --show-current*": "allow"
}
}
}
// vim: set shiftwidth=2 tabstop=2:
{
"$schema": "https://opencode.ai/tui.json",
"theme": "one-dark"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment