INNER CODE UNIT · Rust
next_depth
kubie-org/kubie · src/shell/mod.rs:67
let next_depth = depth + 1;
let mut env_vars = EnvVars::new();
// Pre-insert the KUBECONFIG variable into the shell.
// This will make sure any shell plugins/add-ons which require this env variable
// will have it available at the beginninng of the .rc file
env_vars.insert("KUBECONFIG", temp_config_file.path());
env_vars.insert("KUBIE_ACTIVE", "1");
env_vars.insert("KUBIE_DEPTH", next_depth.to_string());
env_vars.insert("KUBIE_KUBECONFIG", temp_config_file.path());
env_vars.insert("KUBIE_SESSION", temp_session_file.path());
env_vars.insert("KUBIE_STATE", state::paths::state());
env_vars.insert("KUBIE_PROMPT_DISABLE", if settings.prompt.disable { "1" } else { "0" });
env_vars.insert(
"KUBIE_ZSH_USE_RPS1",
if settings.prompt.zsh_use_rps1 { "1" } else { "0" },