# {{ ansible_managed }} # Starship prompt configuration — deployed by cli_modern role # Docs: https://starship.rs/config/ # Timeout for commands that starship runs (ms) command_timeout = 1000 # Insert blank line between prompts add_newline = true # ── Prompt Format ─────────────────────────────────────────── format = """ $username\ $hostname\ $directory\ $git_branch\ $git_status\ $python\ $golang\ $nodejs\ $docker_context\ $cmd_duration\ $line_break\ $character""" # ── Character ─────────────────────────────────────────────── [character] success_symbol = "[❯](bold green)" error_symbol = "[❯](bold red)" vimcmd_symbol = "[❮](bold green)" # ── Directory ─────────────────────────────────────────────── [directory] truncation_length = 4 truncation_symbol = "…/" truncate_to_repo = true style = "bold cyan" # ── Git ───────────────────────────────────────────────────── [git_branch] format = "[$symbol$branch(:$remote_branch)]($style) " symbol = " " style = "bold purple" [git_status] format = '([\[$all_status$ahead_behind\]]($style) )' style = "bold red" conflicted = "=" ahead = "⇡${count}" behind = "⇣${count}" diverged = "⇕⇡${ahead_count}⇣${behind_count}" untracked = "?${count}" stashed = "*" modified = "!${count}" staged = "+${count}" deleted = "✘${count}" # ── Languages ─────────────────────────────────────────────── [python] format = '[${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)' symbol = " " style = "yellow" [golang] format = "[$symbol($version )]($style)" symbol = " " style = "bold cyan" [nodejs] format = "[$symbol($version )]($style)" symbol = " " style = "bold green" # ── Docker ────────────────────────────────────────────────── [docker_context] format = "[$symbol$context]($style) " symbol = " " style = "blue bold" only_with_files = true # ── Command Duration ──────────────────────────────────────── [cmd_duration] min_time = 2_000 format = "[$duration]($style) " style = "bold yellow" # ── Username & Hostname (show on SSH sessions only) ───────── [username] show_always = false format = "[$user]($style)@" style_user = "bold green" style_root = "bold red" [hostname] ssh_only = true format = "[$ssh_symbol$hostname]($style) " ssh_symbol = "🌐 " style = "bold green"