From 9a16f59378b73fb8473abf8ceec5d76b33bb9a8b Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 27 Jun 2023 14:33:14 +1000 Subject: [PATCH] Enable K8S context in Starship prompt --- config/starship.toml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/config/starship.toml b/config/starship.toml index e42ffe3..0f81b6c 100644 --- a/config/starship.toml +++ b/config/starship.toml @@ -1,5 +1,7 @@ "$schema" = 'https://starship.rs/config-schema.json' +format = '$all$kubernetes$line_break$jobs$battery$time$status$os$container$shell$character' + [character] success_symbol = "[❯](bold purple)" vicmd_symbol = "[❮](bold purple)" @@ -38,6 +40,7 @@ style = "blue" read_only = " 󰌾" [docker_context] +format = "[$symbol$context]($style) " symbol = " " [elixir] @@ -82,6 +85,12 @@ symbol = " " [julia] symbol = " " +[kubernetes] +disabled = false +format = "[$symbol$context]($style) " +symbol = '󰠳 ' +style = '33' + [lua] symbol = " " @@ -98,7 +107,7 @@ symbol = "󰆥 " symbol = " " [nodejs] -format = "[$symbol($version )]($style)" +format = "[$symbol($version)]($style) " symbol = " " [os.symbols] @@ -143,13 +152,14 @@ Unknown = " " Windows = "󰍲 " [package] +format = "[$symbol($version)]($style) " symbol = "󰏗 " [perl] symbol = " " [php] -format = "[$symbol($version )]($style)" +format = "[$symbol($version)]($style) " symbol = " " [pijul_channel]