From e2b63a920e2c5786172ae2912cad18447db007b6 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 16 Apr 2025 16:20:01 +0200 Subject: [PATCH] Add kubernetes in prompt --- modules/cli/zsh/starship.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/cli/zsh/starship.nix b/modules/cli/zsh/starship.nix index d90a7c2..2e18091 100644 --- a/modules/cli/zsh/starship.nix +++ b/modules/cli/zsh/starship.nix @@ -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)"; };