feat(starship): add kubernetes part in prompt

This commit is contained in:
Yorick Barbanneau 2025-03-27 15:36:52 +01:00
parent 8d678f1222
commit 800b462e56

View file

@ -12,7 +12,7 @@ in
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
settings = { settings = {
format = "$username$hostname$directory$git_branch$git_state$git_status$cmd_duration$line_break$python$nix_shell$character"; format = "$username$hostname$directory$git_branch$git_state$git_status$cmd_duration$fill$kubernetes$line_break$python$nix_shell$character";
directory = { directory = {
style = "blue"; style = "blue";
truncate_to_repo = false; truncate_to_repo = false;
@ -22,9 +22,9 @@ in
format = "[$read_only]($read_only_style)[$path]($style) "; format = "[$read_only]($read_only_style)[$path]($style) ";
}; };
character = { character = {
success_symbol = "[󰅂](purple)"; success_symbol = "[](purple)";
error_symbol = "[󰅂](red)"; error_symbol = "[](red)";
vimcmd_symbol = "[󰅁](green)"; vimcmd_symbol = "[](green)";
}; };
git_branch = { git_branch = {
format = "[$branch]($style)"; format = "[$branch]($style)";
@ -58,6 +58,18 @@ in
symbol = " "; symbol = " ";
style = "bright-black"; style = "bright-black";
}; };
kubernetes = {
format = "[|$symbol$cluster| ]($style)";
style = "yellow";
disabled = false;
detect_folders = [
"clusters"
"deploy"
];
};
fill = {
symbol = " ";
};
}; };
}; };
}; };