Skip to content

Instantly share code, notes, and snippets.

@kfkonrad
Last active August 16, 2023 12:16
Show Gist options
  • Save kfkonrad/906410a94b9d70b28e6e6801420261ce to your computer and use it in GitHub Desktop.
Save kfkonrad/906410a94b9d70b28e6e6801420261ce to your computer and use it in GitHub Desktop.
Simple single-line PS1-like starship config
add_newline = false
format = """$username\
$hostname\
$kubernetes\
$directory\
$git_branch\
$git_commit\
$git_state\
$git_status\
$docker_context\
$helm\
$cmd_duration\
$status\
$character"""
[character]
success_symbol = "[\\$](bold green)"
error_symbol = "[\\$](bold red)"
[cmd_duration]
show_milliseconds = true
format = "[$duration](bold yellow) "
disabled = false
show_notifications = false
[kubernetes]
disabled = false
format = '[$namespace]($style) '
style = 'bold blue'
[directory]
truncation_length = 5
truncation_symbol = "…/"
[username]
style_user = "green bold"
style_root = "red bold"
format = "[$user]($style)@"
disabled = false
show_always = true
[hostname]
ssh_only = false
format = '[$hostname](bold green) '
trim_at = "."
disabled = false
[status]
style = "red"
symbol = ""
format = '[\[$symbol$status\]]($style) '
disabled = false
[git_branch]
symbol = "[\\(]()"
format = "[$symbol$branch]($style)"
style = "bold purple"
[git_status]
style = "bold yellow"
format = '([$stashed$conflicted$deleted$renamed$staged$modified$untracked$ahead_behind]($style))\) '
untracked = ' ?:$count'
modified = ' U:$count'
staged = ' S:$count'
stashed = ' {$count}'
ahead = ' ⇡:$count'
behind = ' ⇣:$count'
diverged = " ⇡:${ahead_count} ⇣:${behind_count} [merge conflict warning](italic dimmed bright-red)"
deleted = " [✘](yellow):$count"
conflicted = " ⇆ :$count"
renamed = " ↬ :$count"
up_to_date = ""
[git_state]
format = '[\[$state( $progress_current of $progress_total)\]]($style) '
cherry_pick = "CHERRY PICKING"
style = "bold red"
[git_commit]
format = '\([$hash$tag]($style)\) '
style = 'bold green'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment