pub async fn capture(directory: &Path) -> Result<HashMap<String, String>>
Capture all environment variables from the login shell.