Skip to content

Instantly share code, notes, and snippets.

@jriverac
Created July 13, 2023 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jriverac/4e019d443667296e1ae4076b391631a7 to your computer and use it in GitHub Desktop.
Save jriverac/4e019d443667296e1ae4076b391631a7 to your computer and use it in GitHub Desktop.
format = """
$os\
[](fg:#000000 bg:#333333)\
$shell\
[](fg:#000000 bg:#ffffff)\
$username\
[](bg:#aaaaFF fg:#ffffff)\
$directory\
[](fg:#aaaaff bg:#ffffaa)\
$git_branch\
$git_commit\
$git_state\
$git_metrics\
$git_status\
[](fg:#ffffaa bg:#ff3333)\
$ruby\
[](fg:#ff3333 bg:#86BBD8)\
$nodejs\
$java\
$rust\
$c\
$elixir\
$elm\
$golang\
$haskell\
$julia\
$nim\
$scala\
[](fg:#86BBD8 bg:#003f8c)\
$terraform\
$docker_context\
[](fg:#003f8c bg:#232f3e)\
$aws\
[](fg:#232f3e)\
$helm\
$kubernetes\
$status\
"""
# 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:#eeeeee fg:#0000FF bold"
style_root = "bg:#FFFFFF"
format = '[$os $user ]($style)'
[directory]
style = "bg:#aaaaff"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"
home_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" = " "
"Music" = " "
"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  " = "  "
[git_branch]
symbol = ""
style = "bg:#ffff00 fg:#4444ff"
format = '[ $symbol $branch ]($style)'
[git_status]
style = "bg:#ffff00 fg:#4444ff bold"
format = '[ $all_status$ahead_behind ]($style)'
[git_metrics]
disabled = false
added_style = "bg:#ffff00 fg:#000000 bold"
deleted_style = "bg:#ffff00 fg:#FF0000 bold"
format = '([+$added]($added_style))([-$deleted]($deleted_style))'
[ruby]
style = "bg:#d30003 fg:#FFFFFF bold"
format = '[ $symbol ($version) ]($style)'
[nodejs]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[c]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[docker_context]
style = "bg:#003f8c blue bold"
format = '[ $symbol $context ]($style)'
[aws]
style = "bg:#232f3e fg:#ff9903"
symbol = '🅰️'
format = '[ $symbol $profile ($region) $duration ]($style)'
force_display = true
[time]
disabled = false
time_format = "%R" # Hour:Minute Format
style = "bg:#33658A"
format = '[ $time ]($style)'
[golang]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[haskell]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[java]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[julia]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[nim]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[rust]
symbol = ""
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[scala]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[elixir]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[elm]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[helm]
format = 'Helm [$symbol($version )]($style)'
[terraform]
style = "bg:#003f8c blue bold"
format = '[Terraform: $version@$workspace]($style)'
[kubernetes]
format = '[$symbol$context( \($namespace\))]($style) in '
[line_break]
disabled = false
[shell]
style = 'bg:#333333 fg:#999999 bold'
format='[$indicator]($style)'
disabled = false
[os]
format = "[ ($name )]($style)"
style = "bg:#000000 fg:#eeeeee bold"
disabled = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment