Skip to content

Instantly share code, notes, and snippets.

@marcodeltongo
Created January 15, 2022 22:24
Show Gist options
  • Save marcodeltongo/73a9fb89319e076c33b903ad0352b157 to your computer and use it in GitHub Desktop.
Save marcodeltongo/73a9fb89319e076c33b903ad0352b157 to your computer and use it in GitHub Desktop.
My starship.rs configuration
# ~/.config/starship.toml
# Disable the newline at the start of the prompt
add_newline = true
[character]
# The symbol used before the text input in the prompt.
success_symbol = "[◬](bold green)"
# The symbol used before text input if the previous command failed.
error_symbol = "[](bold red)"
# System status
[battery]
full_symbol = ""
charging_symbol = ""
discharging_symbol = ""
[[battery.display]] # "bold red" style when capacity is between 0% and 10%
threshold = 15
style = "bold red"
[[battery.display]] # "bold yellow" style when capacity is between 10% and 30%
threshold = 50
style = "bold yellow"
[[battery.display]] # "bold green" style when capacity is between 10% and 30%
threshold = 80
style = "bold green"
# GIT status
[git_status]
format = "[$ahead_behind$all_status ]($style)"
conflicted = ""
ahead = ""
behind = ""
deleted = " "
diverged = "נּ "
modified = " "
renamed = " "
staged = " "
stashed = " "
untracked = ""
up_to_date = " "
[git_branch]
symbol = " "
format = "[$symbol$branch]($style) "
[git_commit]
tag_symbol = " "
# PRESETS: Nerd Font Symbols + Hide runtime versions preset
[aws]
symbol = " "
[cmake]
format = "[$symbol]($style)"
[cobol]
format = "[$symbol]($style)"
[conda]
symbol = " "
[crystal]
format = "[$symbol]($style)"
[dart]
symbol = " "
format = "[$symbol]($style)"
[deno]
format = "[$symbol]($style)"
[directory]
read_only = " "
[docker_context]
symbol = " "
[dotnet]
symbol = " "
format = "[$symbol (什 $tfm)]($style)"
[elixir]
symbol = " "
format = "[$symbol]($style)"
[elm]
symbol = " "
format = "[$symbol]($style)"
[erlang]
format = "[$symbol]($style)"
[golang]
symbol = " "
format = "[$symbol]($style)"
[helm]
format = "[$symbol]($style)"
[hg_branch]
symbol = " "
[java]
symbol = " "
[julia]
symbol = " "
format = "[$symbol]($style)"
[kotlin]
format = "[$symbol]($style)"
[lua]
symbol = " "
format = "[$symbol]($style)"
[memory_usage]
symbol = " "
format = "$symbol[$ram_pct]($style)"
disabled = false
threshold = 80
[nim]
symbol = " "
format = "[$symbol]($style)"
[nodejs]
symbol = " "
format = " [$symbol]($style)"
[nix_shell]
symbol = " "
[ocaml]
format = "[$symbol($switch_indicator$switch_name)]($style)"
[package]
symbol = " "
format = "[$version]($style)"
display_private = true
[perl]
symbol = " "
format = "[$symbol]($style)"
[php]
symbol = " "
format = "[$symbol]($style)"
[python]
symbol = " "
format = "[$symbol]($style)"
[pulumi]
format = "[$symbol$stack]($style)"
[purescript]
format = "[$symbol]($style)"
[red]
format = "[$symbol]($style)"
[rlang]
format = "[$symbol]($style)"
[ruby]
symbol = " "
format = "[$symbol]($style)"
[rust]
symbol = " "
format = "[$symbol]($style)"
[scala]
symbol = " "
[shlvl]
symbol = " "
[swift]
symbol = "ﯣ "
format = "[$symbol]($style)"
[vagrant]
format = "[$symbol]($style)"
[vlang]
format = "[$symbol]($style)"
[zig]
format = "[$symbol]($style)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment