Skip to main content

default_config_file

Function default_config_file 

Source
pub fn default_config_file(
    get: &dyn Fn(&str) -> Option<String>,
    user_home: &Path,
) -> PathBuf
Expand description

The service config’s default location: $OPENCODE_CONFIG_DIR/service.json (packages/util/src/global.ts:79), else $XDG_CONFIG_HOME/opencode/, else ~/.config/opencode/.