Add kubernetes in prompt

This commit is contained in:
2025-04-28 16:36:48 +02:00
parent 9561dafc9b
commit e2b63a920e
+8
View File
@@ -11,6 +11,7 @@
"$hostname"
"$python"
"$nix_shell"
"$kubernetes"
"$line_break"
"$directory"
"[(\\($git_branch$git_commit$git_status$git_state\\) )](green)"
@@ -97,6 +98,13 @@
heuristic = true;
};
kubernetes = {
format = "[$symbol$context( \($namespace\))]($style)";
# only show it if using a custom config
detect_env_vars = ["KUBECONFIG"];
disabled = false;
};
hostname = {
format = "[ $ssh_symbol$hostname]($style)";
};