MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / global_config_dir

Method global_config_dir

atomic-agent/src/hooks/opencode.rs:371–373  ·  view source on GitHub ↗

Path to the global OpenCode config directory (`~/.config/opencode/`). OpenCode uses the XDG-style `~/.config/opencode/` path on all platforms (including macOS, where `dirs::config_dir()` returns `~/Library/Application Support/`), so we construct it from the home directory.

()

Source from the content-addressed store, hash-verified

369 /// `~/Library/Application Support/`), so we construct it from the
370 /// home directory.
371 fn global_config_dir() -> Option<std::path::PathBuf> {
372 dirs::home_dir().map(|h| h.join(".config").join("opencode"))
373 }
374
375 /// Check whether the `atomic-opencode` plugin is installed globally.
376 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected