Skip to content

Instantly share code, notes, and snippets.

@emctoo
Created May 27, 2022 07:09
Show Gist options
  • Save emctoo/c041b9e63d21db691188d4b2b5e76ec0 to your computer and use it in GitHub Desktop.
Save emctoo/c041b9e63d21db691188d4b2b5e76ec0 to your computer and use it in GitHub Desktop.
~/.config/starship.toml
# ~/.config/starship.toml
# Don't print a new line at the start of the prompt
add_newline = false
[cmd_duration]
show_milliseconds = true
format = "took [$duration](bold yellow) "
[character]
# symbol = "❯"
error_symbol = "βœ—"
# use_symbol_for_status = true
[package]
disabled = true # Disable the package module, hiding it from the prompt completely
[battery]
full_symbol = "πŸ”‹"
charging_symbol = "⚑️"
discharging_symbol = "πŸ’€"
disabled = true
[[battery.display]] # "bold red" style when capacity is between 0% and 10%
threshold = 10
style = "bold red"
[[battery.display]] # "bold yellow" style when capacity is between 10% and 30%
threshold = 30
style = "bold yellow"
[directory]
truncation_length = 7
# docker
[docker_context]
symbol = "πŸ‹ "
disabled = false
# env variable
[env_var]
disabled = true
variable = "SHELL"
default = "unknown shell"
# git
[git_commit]
commit_hash_length = 4
[git_status]
conflicted = "🏳"
ahead = "πŸŽπŸ’¨"
behind = "😰"
diverged = "😡"
untracked = "πŸ€·β€"
stashed = "πŸ“¦"
modified = "πŸ“"
staged.value = "++"
staged.style = "green"
# staged_count.enabled = true
# staged_count.style = "green"
renamed = "πŸ‘…"
deleted = "πŸ—‘"
# hostname
[hostname]
ssh_only = false
# prefix = "βŸͺ"
# suffix = "⟫"
trim_at = ".companyname.com"
disabled = false
# kubernetes
[kubernetes]
symbol = "β›΅ "
style = "dimmed green"
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
[memory_usage]
format = "with$symbol [${ram} ${ram_pct}( | ${swap} ${swap_pct})]($style) "
disabled = false
threshold = -1
symbol = " "
style = "bold dimmed green"
[rust]
format = "rust: [πŸ¦€ $version](red bold)"
[golang]
format = "go: [πŸŽπŸ’¨ $version](bold cyan) "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment