summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/starship.toml44
1 files changed, 22 insertions, 22 deletions
diff --git a/.config/starship.toml b/.config/starship.toml
index 9ea4175..2b32318 100644
--- a/.config/starship.toml
+++ b/.config/starship.toml
@@ -2,31 +2,21 @@ format = """
 ⋮ \
 $username\
 $hostname\
-$shlvl\
-$kubernetes\
 $directory\
+\
 $git_branch\
 $git_commit\
 $git_state\
-$memory_usage\
-$env_var\
-$custom\
-$cmd_duration\
+\
 $jobs\
-$time\
-$status\
+$shlvl\
+${custom.toolbox}\
+\
 $character\
 """
 
 add_newline = false
-
-[character]
-success_symbol = "❯"
-
-[directory]
-truncation_length = 0
-truncate_to_repo = false
-style = "bright-yellow"
+command_timeout = 100
 
 [username]
 format = "[$user@]($style)"
@@ -36,6 +26,11 @@ style_user = "dimmed"
 format = "[$hostname]($style) "
 style = "dimmed"
 
+[directory]
+truncation_length = 0
+truncate_to_repo = false
+style = "bright-yellow"
+
 [git_branch]
 format = "[$symbol$branch]($style) "
 disabled = false
@@ -43,12 +38,17 @@ disabled = false
 [jobs]
 symbol = "∆"
 
-[cmd_duration]
-format = "[$duration]($style) "
-style = ""
-min_time = 60_000
-# disabled = true
-
 [shlvl]
 symbol = "☰"
 disabled = false
+
+[custom.toolbox]
+symbol = "⬢ "
+style = "bright-blue"
+format = "[$symbol]($style)"
+when = """ test -f /run/.containerenv && test -f /run/.toolboxenv """
+
+[character]
+format = "$symbol "
+success_symbol = "[❯](bold white)"
+error_symbol = "[❯](bold red)"