Skip to content

Instantly share code, notes, and snippets.

@duskmoon314
Created September 24, 2024 02:43
Show Gist options
  • Save duskmoon314/ed9f92bb001b5327fe85ebf97297b9b5 to your computer and use it in GitHub Desktop.
Save duskmoon314/ed9f92bb001b5327fe85ebf97297b9b5 to your computer and use it in GitHub Desktop.
starship lean prompt
"$schema" = 'https://starship.rs/config-schema.json'
format = '''
$os$directory$git_branch$git_commit$git_state$git_status$fill$cmd_duration$time
$character
'''
[os]
format = '[$symbol]($style)'
disabled = false
[directory]
truncate_to_repo = false
format = '[$read_only]($read_only_style)[$path]($style) '
read_only = " "
[git_branch]
symbol = " "
format = '[$symbol$branch(:$remote_branch)]($style) '
style = 'green'
[git_state]
format = '\([$state( $progress_current/$progress_total)]($style)\) '
[git_status]
format = '[($all_status$ahead_behind)]($style) '
conflicted = "=$count"
untracked = "?$count"
stashed = "⚑$count"
modified = "!$count"
staged = "+$count"
renamed = "»$count"
deleted = "✘$count"
ahead = "⇡$count"
behind = "⇣$count"
diverged = "⇕⇡$ahead_count⇣$behind_count"
[fill]
symbol = '·'
[cmd_duration]
format = ' [$duration]($style)'
style = 'gray'
[time]
format = " [$time]($style)"
disabled = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment