Skip to content

Instantly share code, notes, and snippets.

@kfkonrad
Last active July 28, 2023 07:36
Show Gist options
  • Save kfkonrad/e25bf5d7d288b0099288946150418e2f to your computer and use it in GitHub Desktop.
Save kfkonrad/e25bf5d7d288b0099288946150418e2f to your computer and use it in GitHub Desktop.
My three line starship prompt - starships are meant to fly πŸš€
add_newline = false
format = """[β•­βžœ](bold blue) $username$hostname$battery$gcloud$aws${custom.kubie}$kubernetes$helm$status$cmd_duration
[β”œ](yellow)[➜](bold yellow) $directory$rust$package$git_branch$git_status$git_state$git_metrics$git_commit$golang$terraform$docker_context
$character """
[character]
success_symbol = "[β•°βžœ](bold green)"
error_symbol = "[β•°βžœ](bold red)"
[cmd_duration]
show_milliseconds = true
format = "took [$duration](bold yellow) "
disabled = false
show_notifications = false
[kubernetes]
disabled = false
format = '[$symbol](blue)[$namespace \($context\)]($style) '
style = 'bold blue'
[kubernetes.context_aliases]
"docker-desktop" = "local"
".*occonnect-ocp.*" = "OCP"
"do-fra1-production-kubernetes" = "Ξ±9-prod"
"do-fra1-staging-kubernetes" = "Ξ±9-stage"
"do-fra1-development-kubernetes" = "Ξ±9-dev"
[memory_usage]
format = "with$symbol [${ram} ${ram_pct}( | ${swap} ${swap_pct})]($style) "
disabled = false
threshold = -1
symbol = " "
style = "bold dimmed green"
[gcloud]
style = "blue"
format = '[$symbol$account(\($project\))]($style) '
symbol = "G⅁:☁️"
disabled = true
[gcloud.region_aliases]
us-central1 = "uc1"
asia-northeast1 = "an1"
[aws]
format = '[$symbol$profile(\($region\))]($style) '
style = "bold yellow"
symbol = "βˆ€β΅β‚·β˜οΈβ˜οΈ"
disabled = true
[aws.region_aliases]
ap-southeast-2 = "au"
us-east-1 = "va"
[package]
format = " package: [🎁 $version](208 bold) "
disabled = true
[docker_context]
format = "docker: [πŸ‹ $context](blue bold)"
disabled = false
[directory]
truncation_length = 7
truncation_symbol = "…/"
[username]
style_user = "green bold"
style_root = "red bold"
format = "[$user]($style)@"
disabled = false
show_always = true
[time]
disabled = false
format = '[\[ $time \]]($style) '
[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 = "on [$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 = "πŸ’ PICKING"
style = "bold red"
[git_commit]
format = '\([$hash$tag]($style)\) '
style = 'bold green'
[rust]
format = "rust: [$symbol$version](red bold) "
symbol = "πŸ¦€ "
[golang]
format = "go: [🐹 $version](bold cyan) "
disabled = true
[helm]
format = "helm: [⎈ $version](bold white) "
disabled = true
[jobs]
symbol = "+ "
threshold = 4
format = "background [$symbol$number]($style) "
[terraform]
format = "[πŸŒβš’οΈ $version$workspace]($style) "
disabled = true
[battery]
full_symbol = "πŸ”‹ "
charging_symbol = "⚑️ "
discharging_symbol = "πŸ’€ "
disabled = true
[[battery.display]] # "bold red" style when capacity is between 0% and 10%
threshold = 10
style = "bold red"
[[battery.display]] # "bold yellow" style when capacity is between 10% and 30%
threshold = 30
style = "bold yellow"
[[battery.display]]
threshold = 100
style = "bold green"
[custom.kubie]
when = """ test "$KUBIE_ACTIVE" = "1" """
format = "[🐱 ]($style)"
os = "linux"
shell = ["sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment