MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / user_ssh_config_path

Function user_ssh_config_path

crates/openshell-cli/src/ssh.rs:1456–1461  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1454}
1455
1456fn user_ssh_config_path() -> Result<PathBuf> {
1457 let home = std::env::var("HOME")
1458 .into_diagnostic()
1459 .wrap_err("HOME is not set")?;
1460 Ok(PathBuf::from(home).join(".ssh").join("config"))
1461}
1462
1463fn render_include_line(path: &Path) -> String {
1464 format!("Include \"{}\"", path.display())

Callers 1

install_ssh_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected