Skip to main content

wslenv_with

Function wslenv_with 

Source
pub fn wslenv_with<'a>(
    existing: &str,
    caller_keys: impl IntoIterator<Item = &'a str>,
) -> String
Expand description

WSLENV for a process in a distro: the terminal variables, the names its caller set (an agent Shell call’s env, or a pane’s configured cmd:env), and GH_CONFIG_DIR translated to a distro path (/p), so an agent’s plain-gh guard holds inside the distro too and gh there cannot act as the user. Never an AGENTMUX_* variable beyond the terminal ones and the agent id: the auth key, the local URL and the jekt key stay on Windows.