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;
enableZshIntegration = true;
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 = {
style = "blue";
truncate_to_repo = false;
@ -22,9 +22,9 @@ in
format = "[$read_only]($read_only_style)[$path]($style) ";
};
character = {
success_symbol = "[󰅂](purple)";
error_symbol = "[󰅂](red)";
vimcmd_symbol = "[󰅁](green)";
success_symbol = "[](purple)";
error_symbol = "[](red)";
vimcmd_symbol = "[](green)";
};
git_branch = {
format = "[$branch]($style)";
@ -58,6 +58,18 @@ in
symbol = " ";
style = "bright-black";
};
kubernetes = {
format = "[|$symbol$cluster| ]($style)";
style = "yellow";
disabled = false;
detect_folders = [
"clusters"
"deploy"
];
};
fill = {
symbol = " ";
};
};
};
};