starship: customize config

This commit is contained in:
Veneficium 2024-10-15 19:59:32 +02:00
parent 002f71fe15
commit d95774a9f8

View file

@ -1,30 +1,32 @@
right_format = """
[](#FCA17D)\
$sudo\
[](fg:#DA627D bg:#FCA17D)\
$battery\
[](bg:#DA627D fg:#9A348E)\
[ hii :3](bg:#9A348E)\
[](#9A348E)\
"""
format = """ format = """
[](#9A348E)\ [](#9A348E)\
$os\
$username\ $username\
[](bg:#DA627D fg:#9A348E)\ [](bg:#DA627D fg:#9A348E)\
$directory\ $directory\
[](fg:#DA627D bg:#FCA17D)\ [](fg:#DA627D bg:#FCA17D)\
$git_branch\ $git_branch\
$git_status\ $git_status\
[](fg:#FCA17D bg:#86BBD8)\ [](fg:#FCA17D bg:#86BBD8)\
$c\ $c\
$elixir\
$elm\
$golang\ $golang\
$gradle\
$haskell\ $haskell\
$java\
$julia\
$nodejs\ $nodejs\
$nim\
$rust\ $rust\
$scala\ [](fg:#86BBD8 bg:#06969A)\
[](fg:#86BBD8 bg:#06969A)\
$docker_context\ $docker_context\
[](fg:#06969A bg:#33658A)\ [](fg:#06969A bg:#33658A)\
$time\ $time\
[ ](fg:#33658A)\ [ ](fg:#33658A)\
""" """
# Disable the blank line at the start of the prompt # Disable the blank line at the start of the prompt
@ -39,17 +41,11 @@ style_root = "bg:#9A348E"
format = '[$user ]($style)' format = '[$user ]($style)'
disabled = false disabled = false
# An alternative to the username module which displays a symbol that
# represents the current operating system
[os]
style = "bg:#9A348E"
disabled = true # Disabled by default
[directory] [directory]
style = "bg:#DA627D" style = "bg:#DA627D"
format = "[ $path ]($style)" format = "[ $path ]($style)"
truncation_length = 3 truncation_length = 3
truncation_symbol = "…/" truncation_symbol = ""
# Here is how you can shorten some long paths by text replacement # Here is how you can shorten some long paths by text replacement
# similar to mapped_locations in Oh My Posh: # similar to mapped_locations in Oh My Posh:
@ -74,16 +70,6 @@ symbol = " "
style = "bg:#06969A" style = "bg:#06969A"
format = '[ $symbol $context ]($style)' format = '[ $symbol $context ]($style)'
[elixir]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[elm]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[git_branch] [git_branch]
symbol = "" symbol = ""
style = "bg:#FCA17D" style = "bg:#FCA17D"
@ -98,47 +84,37 @@ symbol = " "
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[gradle]
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[haskell] [haskell]
symbol = " " symbol = " "
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[java]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[julia]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[nodejs] [nodejs]
symbol = "" symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[nim]
symbol = "󰆥 "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[rust] [rust]
symbol = "" symbol = ""
style = "bg:#86BBD8" style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)' format = '[ $symbol ($version) ]($style)'
[scala]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[time] [time]
disabled = false disabled = false
time_format = "%R" # Hour:Minute Format time_format = "%R" # Hour:Minute Format
style = "bg:#33658A" style = "bg:#33658A"
format = '[ ♥ $time ]($style)' format = '[ $time ]($style)'
[battery]
disabled = false
format = '[ $percentage ]($style)'
[[battery.display]]
style = "bg:#DA627D"
threshold = 60
[sudo]
disabled = false
symbol = "!"
style = "bg:#FCA17D"
format = "[$symbol ]($style)"