Skip to content

Commit

Permalink
feat: Extend prompt to more tools
Browse files Browse the repository at this point in the history
Specifically, it now indicates helm envs and displays the username and
hostname for SSH sessions (and a few other use cases).
  • Loading branch information
mbd-s committed Jun 1, 2023
1 parent bc98dc7 commit 5551b96
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions starship/starship.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ add_newline = false
command_timeout = 1000

format = """
$username\
$hostname\
$directory\
$time\
$git_branch\
Expand All @@ -14,7 +16,8 @@ $character
right_format = """
$aws\
$kubernetes\
$terraform
$terraform\
$helm
"""

[aws]
Expand All @@ -25,17 +28,17 @@ style = "bold #ffb86c"
[aws.region_aliases]
eu-central-1 = ""

[directory]
style = "bold #50fa7b"
truncation_length = 6

[character]
error_symbol = "[❯](bold #ff5555)"
success_symbol = "[❯](bold #50fa7b)"

[cmd_duration]
style = "bold #f1fa8c"

[directory]
style = "bold #50fa7b"
truncation_length = 3

[git_branch]
format = "[$symbol$branch]($style) "
style = "bold #ff79c6"
Expand All @@ -54,6 +57,14 @@ staged = '[+\($count\)](#50fa7b) '
stashed = '[\$](#8be9fd) '
untracked = '[?\($count\)](#bd93f9) '

[helm]
symbol = '🕸️ '
format = '[$symbol ($version )]($style)'
style = 'bold #f8f8f2'

[hostname]
style = "bold #ff5555"

[kubernetes]
disabled = false
format = '[ $symbol$context( \($namespace\))]($style)'
Expand All @@ -72,3 +83,7 @@ disabled = false
format = "[$time]($style)"
style = "#6272a4"
time_format = "%H:%M "

[username]
format = "[$user]($style) on "
style_user = "bold #bd93f9"

0 comments on commit 5551b96

Please sign in to comment.