easyai-ai-gateway/starship.toml
chensipeng 2a9a833cd7 chore(dev): 配置本地开发环境
引入 devenv 与 starship 配置,统一 Go/Node/Postgres 开发依赖与快捷命令。
同时让脚本在使用本地数据库环境时跳过 Docker 创建步骤。
2026-05-13 06:44:26 +00:00

102 lines
1.8 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# --- 全局结构 (极致紧凑高信息密度AI友好) ---
format = """
$directory\
$git_branch\
$git_status\
$nix_shell\
$nodejs\
$bun\
$rust\
$golang\
$cmd_duration\
$memory_usage\
$status\
$line_break\
$character"""
# --- 目录 ---
[directory]
style = "bold cyan"
truncation_length = 3
truncate_to_repo = false
truncation_symbol = ".../"
home_symbol = "~"
read_only = " [RO]"
# --- Git 状态 (纯文本,避免解析错误与乱码) ---
[git_branch]
symbol = "git:"
style = "bold purple"
format = "[$symbol$branch]($style) "
[git_status]
format = "[$all_status$ahead_behind]($style) "
style = "bold red"
conflicted = "="
ahead = ">"
behind = "<"
diverged = "<>"
untracked = "?"
stashed = "*"
modified = "!"
staged = "+"
renamed = "»"
deleted = "x"
# --- 编程语言与环境 (紧凑标签格式) ---
[nodejs]
symbol = "node:"
style = "bold green"
format = "[$symbol$version]($style) "
detect_files = ["package.json", ".node-version"]
[bun]
symbol = "bun:"
style = "bold blue"
format = "[$symbol$version]($style) "
[rust]
symbol = "rust:"
style = "bold 208"
format = "[$symbol$version]($style) "
[golang]
symbol = "go:"
style = "bold cyan"
format = "[$symbol$version]($style) "
[nix_shell]
symbol = "nix:"
style = "bold blue"
format = "[$symbol$state]($style) "
impure_msg = "impure"
pure_msg = "pure"
# --- AI 辅助决策信息 (性能与状态反馈) ---
[cmd_duration]
min_time = 2_000
format = "took [$duration]($style) "
style = "bold yellow"
[memory_usage]
symbol = "mem:"
disabled = false
threshold = 75
format = "[$symbol$ram_pct]($style) "
style = "bold dimmed white"
[status]
disabled = false
format = "[ERR:$status]($style) "
style = "bold red"
# --- 交互符号 (带明确状态码) ---
[character]
success_symbol = "[>](bold green)"
error_symbol = "[>](bold red)"
vicmd_symbol = "[<](bold green)"
# --- 兼容性补充 ---
[package]
disabled = true