Skip to content

Instantly share code, notes, and snippets.

@kule
Created September 13, 2022 08:18
Show Gist options
  • Save kule/d7fddc77e71472f259aad3aed09c06dc to your computer and use it in GitHub Desktop.
Save kule/d7fddc77e71472f259aad3aed09c06dc to your computer and use it in GitHub Desktop.
Starship.rs Pastel Powerline Inspired Setup (ruby/k8s/docker/git)
format = """
[](bg:#33658A fg:#282727)\
[](bg:#349a73 fg:#33658A)\
$hostname\
[](bg:#9A348E fg:#349a73)\
$directory\
[](bg:#DA627D fg:#9A348E)\
$ruby\
[](fg:#DA627D bg:#869ED8)\
$kubernetes\
[](fg:#869ED8 bg:#06969A)\
$docker_context\
[](fg:#06969A bg:#33658A)\
$git_branch\
$git_status\
[ ](fg:#33658A)\
$status\
$line_break\
[> ](fg:#33658A)\
"""
# Disable the blank line at the start of the prompt
# add_newline = false
# You can also replace your username with a neat symbol like  to save some space
[username]
show_always = true
style_user = "bg:#9A348E"
style_root = "bg:#9A348E"
format = '[$user ]($style)'
[directory]
style = "bg:#9A348E"
format = "[ $path ]($style)"
truncation_length = 3
# truncation_symbol = "…/"
# Here is how you can shorten some long paths by text replacement
# similar to mapped_locations in Oh My Posh:
[directory.substitutions]
"Documents" = " "
"Downloads" = " "
"Pictures" = " "
# Keep in mind that the order matters. For example:
# "Important Documents" = "  "
# will not be replaced, because "Documents" was already substituted before.
# So either put "Important Documents" before "Documents" or use the substituted version:
# "Important  " = "  "
[docker_context]
symbol = " "
style = "bg:#06969A"
format = '[ $symbol$context ]($style)'
[git_branch]
symbol = ""
style = "bg:#33658A"
format = '[ $symbol $branch ]($style)'
[git_status]
style = "bg:#33658A"
format = '[$all_status$ahead_behind ]($style)'
[hostname]
ssh_symbol = ""
style = "bg:#349a73"
[kubernetes]
symbol = "ﴱ"
style = "bg:#869ED8"
format = '[ $symbol $context ]($style)'
disabled = false
[line_break]
disabled = false
[ruby]
symbol = ""
style = "bg:#DA627D"
format = '[ $symbol ($version) ]($style)'
[status]
symbol = ""
disabled = false
format = "[$symbol $status]($style) "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment