Skip to content

Instantly share code, notes, and snippets.

@mcwiise
Created December 18, 2024 21:38
Show Gist options
  • Save mcwiise/ff69056e8cb94be9397a2c5508e57018 to your computer and use it in GitHub Desktop.
Save mcwiise/ff69056e8cb94be9397a2c5508e57018 to your computer and use it in GitHub Desktop.
The best starship configuration ever
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# ~/.config/starship.toml
format = """
$directory$git_branch$git_status$fill$aws$nodejs$java$gradle
$os$character
"""
[fill]
symbol = ' '
[directory]
format = '[ $path ]($style)[$read_only]($read_only_style)'
style = 'bg:blue'
read_only_style = 'bg:red'
truncate_to_repo = true
truncation_length = 1
[git_branch]
format = '[ $symbol$branch ]($style)'
style = 'bg:green'
[git_status]
format = '[$all_status$ahead_behind](bg:green)'
conflicted = '[ = ](bg:yellow bold)'
ahead = '[ ⇡ ](bg:yellow bold)'
behind = '[ ⇣ ](bg:yellow bold)'
diverged = '[ ⇕ ](bg:yellow bold)'
up_to_date = ''
untracked = '[ ? ](bg:yellow bold)'
stashed = '[ \$ ](bg:yellow bold)'
modified = '[ ! ](bg:yellow bold)'
staged = '[ + ](bg:yellow bold)'
renamed = '[ » ](bg:yellow bold)'
deleted = '[ ✘ ](bg:yellow bold)'
typechanged = ""
[aws]
format = '[ $symbol $profile $region ]($style)'
symbol = ' '
[nodejs]
format = '[ $symbol $version ]($style)'
version_format = '${raw}'
[java]
format = '[ $symbol:$version ]($style)'
version_format = '${raw}'
style = 'bg:red bold'
symbol = 'jdk'
[gradle]
format = '[ $symbol $version ]($style)'
version_format = '${raw}'
symbol = ''
[os]
format = '[$symbol ]($style)'
disabled = false
[os.symbols]
Macos = '󰀵'
[character]
success_symbol = "[❯](bold default)"
error_symbol = '[✗](bold red) '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment