Skip to content

Instantly share code, notes, and snippets.

@rnaveiras
Created June 16, 2026 15:05
Show Gist options
  • Select an option

  • Save rnaveiras/5c551692751e3d70954eea21d94fe884 to your computer and use it in GitHub Desktop.

Select an option

Save rnaveiras/5c551692751e3d70954eea21d94fe884 to your computer and use it in GitHub Desktop.
# editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = true
command_timeout = 200
# Main format matching Oh My Posh zen layout
# Left side: directory, git branch, git status
# Right side: execution time
format = """
[$directory$git_branch$git_status]($style) ($aws) ($kubernetes)
$character"""
# right_format = "$cmd_duration"
right_format = """$cmd_duration$jobs"""
# Fill character (empty space) between the left and right prompt
[fill]
symbol = " "
# Disable the line break between the first and second prompt lines
[line_break]
disabled = true
# Character prompt - matches Oh My Posh transient/main prompt with exit code coloring
[character]
success_symbol = "[❯](bold magenta)"
# error_symbol = "[❯](bold red) "
error_symbol = "[✗](bold red) "
# Directory segment - matches Oh My Posh path styling (blue, full style)
[directory]
style = "bold blue"
truncation_length = 3
truncation_symbol = "…/"
read_only = " 🔒"
read_only_style = "red"
format = "[$path]($style)[$read_only]($read_only_style) "
# Execution time - matches Oh My Posh executiontime (yellow, 5s threshold)
[cmd_duration]
min_time = 5_000
format = "[⏱ $duration]($style)"
style = "yellow"
[jobs]
threshold = 1
symbol_threshold = 1
number_threshold = 2
format = "[$symbol( $number)]($style) "
symbol = "⏸"
style = "bold blue"
disabled = false
# Git branch - matches Oh My Posh branch_icon
[git_branch]
style = "grey"
format = "[$symbol$branch]($style) "
# Git status - matches Oh My Posh git segment with ahead/behind indicators
[git_status]
format = '([$all_status$ahead_behind]($style))'
style = "grey"
ahead = "⇡${count}"
diverged = "⇕⇡${ahead_count}⇣${behind_count}"
behind = "⇣${count}"
[git_state]
format = "([$state]($style)) "
[aws]
format = '[$symbol$profile ($region)]($style) '
style = 'bold blue'
symbol = 'AWS'
disabled = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment