Skip to content

Instantly share code, notes, and snippets.

@mike-rambil
Created June 3, 2025 15:55
Show Gist options
  • Save mike-rambil/b7f164d2a75a1123a153291b2f3496ac to your computer and use it in GitHub Desktop.
Save mike-rambil/b7f164d2a75a1123a153291b2f3496ac to your computer and use it in GitHub Desktop.
Windows Terminal - StarShip TOML
# ~/.config/starship.toml
# ————— Prompt-wide settings —————
add_newline = true
format = """$directory $git_branch$git_status$python$rust$c$nodejs$java$docker_context
$character"""
# ————— directory module —————
[directory]
style = "blue bold"
truncation_length = 1000
truncation_symbol = "…/"
home_symbol = "~"
read_only = "🔒"
fish_style_pwd_dir_length = 1
use_os_path_sep = true
# ————— git_branch module —————
[git_branch]
symbol = "\uE0A0 "
style = "bold purple"
format = "[$symbol$branch]($style) "
# ————— git_status module —————
[git_status]
style = "yellow"
format = '([$all_status$ahead_behind]($style)) '
conflicted = "🏳"
ahead = "⇡${count}"
behind = "⇣${count}"
diverged = "⇕⇡${ahead_count}⇣${behind_count}"
untracked = "🤷 ${count}"
stashed = "📦 ${count}"
modified = "📝 ${count}"
staged = "✅ ${count}"
renamed = "📛 ${count}"
deleted = "🗑️ ${count}"
# ————— python module —————
[python]
symbol = "🐍"
pyenv_version_name = true
format = '[${symbol} ${version} (${virtualenv})]($style) '
style = "bold green"
detect_extensions = ["py"]
detect_files = ["requirements.txt", "pyproject.toml", "setup.py", ".python-version"]
detect_folders = ["__pycache__"]
# ————— rust module —————
[rust]
symbol = "🦀"
format = "[$symbol $version]($style) "
style = "red bold"
# ————— c module —————
[c]
symbol = "💻"
format = "[$symbol]($style) "
style = "cyan"
detect_extensions = ["c", "h"]
detect_files = ["Makefile"]
detect_folders = ["src"]
# ————— nodejs module —————
[nodejs]
symbol = "🟢"
format = "[$symbol $version]($style) "
style = "green"
# ————— java module —————
[java]
symbol = ""
format = "[$symbol $version]($style) "
style = "red"
# ————— docker_context module —————
[docker_context]
symbol = "🐳"
format = "[$symbol $context]($style) "
style = "blue bold"
# ————— character module —————
[character]
success_symbol = "[❯](bold green)"
error_symbol = "[✗](bold red)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment