starship

跨 shell 的快速提示符

补充说明

starship 用 Rust 编写,支持 bash/zsh/fish 等,按目录显示 git、语言版本、Kubernetes context、云账号等信息。配置在 ~/.config/starship.toml。

常用示例

# ~/.bashrc / ~/.zshrc
eval "$(starship init bash)"
eval "$(starship init zsh)"
# ~/.config/starship.toml
add_newline = false
[kubernetes]
disabled = false

易错点与排错