Skip to content

Instantly share code, notes, and snippets.

@ajardin
Created April 21, 2026 19:09
Show Gist options
  • Select an option

  • Save ajardin/b9ca4803b6f00e27c541cdfd171bdf0f to your computer and use it in GitHub Desktop.

Select an option

Save ajardin/b9ca4803b6f00e27c541cdfd171bdf0f to your computer and use it in GitHub Desktop.
Starship config
# ==================================================
# Starship Prompt Configuration
# ==================================================
add_newline = true
command_timeout = 500
format = """
$time $directory $git_branch $git_metrics\
$line_break\
$character"""
# --------------------------------------------------
# Heure
# --------------------------------------------------
[time]
disabled = false
format = '[\[$time\]](dimmed white)'
time_format = "%H:%M"
# --------------------------------------------------
# Répertoire
# --------------------------------------------------
[directory]
format = "[$path]($style)"
style = "bold cyan"
truncation_length = 3
truncate_to_repo = true
read_only = " 🔒"
# --------------------------------------------------
# Git — Branche
# --------------------------------------------------
[git_branch]
format = "[󰊢 $branch(:$remote_branch)]($style)"
style = "bold purple"
# --------------------------------------------------
# Git — Métriques (insertions/deletions)
# --------------------------------------------------
[git_metrics]
disabled = false
format = '([+$added]($added_style)) ([-$deleted]($deleted_style))'
added_style = "bold green"
deleted_style = "bold red"
# --------------------------------------------------
# Indicateur de prompt
# --------------------------------------------------
[character]
success_symbol = "[❯](boldwhite)"
error_symbol = "[❯](bol white)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment