Skip to content

Instantly share code, notes, and snippets.

@promisepreston
Last active May 8, 2023 18:10
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 promisepreston/a4e6e086167bc769165855673e59ab10 to your computer and use it in GitHub Desktop.
Save promisepreston/a4e6e086167bc769165855673e59ab10 to your computer and use it in GitHub Desktop.
Starship configuration file
# ~/.config/starship.toml
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = true
[aws]
disabled = false
format = 'on [$symbol($profile )(\($region\) )]($style)'
style = 'bold yellow'
symbol = '๐Ÿ…ฐ '
[azure]
disabled = true
format = 'on [$symbol($subscription)]($style) '
symbol = '๏ดƒ '
style = 'blue bold'
[battery]
full_symbol = '๐Ÿ”‹ '
charging_symbol = 'โšก๏ธ '
discharging_symbol = '๐Ÿ’€ '
[[battery.display]] # 'bold red' style and discharging_symbol when capacity is between 0% and 10%
threshold = 10
style = 'bold red'
[[battery.display]] # 'bold yellow' style and ๐Ÿ’ฆ symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
discharging_symbol = '๐Ÿ’ฆ'
# when capacity is over 30%, the battery indicator will be displayed
[[battery.display]] # 'default
threshold = 100
[c]
format = 'via [$name $version]($style)'
[character]
success_symbol = '[โžœ](bold green)'# Replace the 'โฏ' symbol in the prompt with 'โžœ'
error_symbol = "[โœ–](bold red) "
[cmd_duration]
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec)
format = " took [$duration]($style)"
[gcloud]
disabled = true
[git_branch]
symbol = '๐ŸŒฑ '
truncation_length = 15
truncation_symbol = '...'
[git_metrics]
added_style = 'bold blue'
format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
[git_status]
conflicted = "โš”๏ธ "
ahead = "๐ŸŽ๏ธ ๐Ÿ’จ ร—${count "
behind = "๐Ÿข ร—${count} "
diverged = "๐Ÿ”ฑ ๐ŸŽ๏ธ ๐Ÿ’จ ร—${ahead_count} ๐Ÿข ร—${behind_count "
untracked = "๐Ÿ›ค๏ธ ร—${count "
stashed = "๐Ÿ“ฆ "
modified = "๐Ÿ“ ร—${count} "
staged = "๐Ÿ—ƒ๏ธ ร—${count "
renamed = "๐Ÿ“› ร—${count} "
deleted = "๐Ÿ—‘๏ธ ร—${count "
style = "bright-white"
format = "$all_status$ahead_behind"
[golang]
format = 'via [๐ŸŽ๐Ÿ’จ $version](bold cyan) '
[helm]
format = 'via [โŽˆ $version](bold white) '
[java]
symbol = '๐ŸŒŸ '
[julia]
format = "[$symbol$version]($style) "
symbol = "เฎƒ "
style = "bold green"
[lua]
format = 'via [๐ŸŒ• $version](bold blue) '
[kotlin]
symbol = '๐Ÿ…บ '
[kubernetes]
format = 'on [โ›ต ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = true
[memory_usage]
disabled = false
threshold = -1
symbol = '๐Ÿ '
style = 'bold dimmed green'
[nodejs]
format = 'via [๐Ÿค– $version](bold green) '
[os]
format = "on [($name )]($style)"
style = "bold blue"
disabled = false
[package]
disabled = true
[perl]
format = 'via [๐Ÿฆช $version]($style) '
[php]
format = 'via [๐Ÿ”น $version](147 bold) '
[python]
symbol = '๐Ÿ‘พ '
pyenv_version_name = true
[ruby]
symbol = '๐Ÿ”บ '
[rust]
format = 'via [โš™๏ธ $version](red bold)'
[scala]
symbol = '๐ŸŒŸ '
[sudo]
style = 'bold green'
symbol = '๐Ÿ‘ฉโ€๐Ÿ’ป '
disabled = false
[terraform]
format = '[๐ŸŽ๐Ÿ’จ $version$workspace]($style) '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment