starship
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "starship" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-634bee481433989f2e8870798f5ea7c322ba32c9e1bfddff8f55458f34a3496d. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/starship-cross-shell-prompt-configurator before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A minimal, super-fast, infinitely customizable prompt for any shell. Written in Rust and usable in bash, zsh, fish, PowerShell, Ion, Elvish, Tcsh, Nushell, and Xonsh.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Not specified in the source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: starship
description: >-
You are an expert in Starship, the minimal, blazing-fast, cross-shell
prompt written in Rust. You help developers customize their terminal prompt
with git status, language versions, cloud context, battery level, time, and
custom modules — working identically across Bash, Zsh, Fish, PowerShell, and
any shell with a single TOML config file.
license: Apache-2.0
compatibility: ''
metadata:
author: terminal-skills
version: 1.0.0
category: Developer Tools
tags:
- terminal
- prompt
- shell
- customization
- rust
- fast
- cross-shellStarship — Cross-Shell Prompt
You are an expert in Starship, the minimal, blazing-fast, cross-shell prompt written in Rust. You help developers customize their terminal prompt with git status, language versions, cloud context, battery level, time, and custom modules — working identically across Bash, Zsh, Fish, PowerShell, and any shell with a single TOML config file.
Core Capabilities
Configuration
# ~/.config/starship.toml
format = """
$username\
$hostname\
$directory\
$git_branch\
$git_status\
$nodejs\
$python\
$rust\
$golang\
$docker_context\
$kubernetes\
$aws\
$terraform\
$cmd_duration\
$line_break\
$character"""
[character]
success_symbol = "[❯](bold green)"
error_symbol = "[❯](bold red)"
[directory]
truncation_length = 3
truncate_to_repo = true
style = "bold cyan"
[git_branch]
symbol = "🌿 "
style = "bold purple"
[git_status]
conflicted = "⚔️ "
ahead = "⇡${count} "
behind = "⇣${count} "
diverged = "⇕⇡${ahead_count}⇣${behind_count} "
untracked = "?${count} "
stashed = "📦 "
modified = "!${count} "
staged = "+${count} "
deleted = "✘${count} "
[nodejs]
symbol = "⬢ "
detect_files = ["package.json", ".nvmrc"]
style = "bold green"
[python]
symbol = "🐍 "
detect_extensions = ["py"]
style = "bold yellow"
[rust]
symbol = "🦀 "
style = "bold red"
[docker_context]
symbol = "🐳 "
only_with_files = true
[kubernetes]
disabled = false
symbol = "☸ "
detect_files = ["k8s", "kubernetes"]
[aws]
symbol = "☁️ "
format = '[$symbol($profile )(\($region\))]($style)'
[cmd_duration]
min_time = 2000 # Show if command took >2s
format = "took [$duration]($style) "
style = "bold yellow"
[time]
disabled = false
format = "🕐 [$time]($style) "
time_format = "%H:%M"
# Custom module
[custom.docker_running]
command = "docker ps -q | wc -l | tr -d ' '"
when = "docker ps -q"
symbol = "🐳 "
format = "[$symbol$output containers]($style) "
style = "blue"
Installation
# macOS
brew install starship
# Linux
curl -sS https://starship.rs/install.sh | sh
# Add to shell:
# Bash: eval "$(starship init bash)" >> ~/.bashrc
# Zsh: eval "$(starship init zsh)" >> ~/.zshrc
# Fish: starship init fish | source >> ~/.config/fish/config.fish
Best Practices
- Cross-shell — Same config works in Bash, Zsh, Fish, PowerShell; switch shells without reconfiguring
- Lazy detection — Modules only show when relevant (Node.js only in JS projects); clean prompt by default
- Git status at a glance — Shows ahead/behind, modified, staged, untracked counts inline
- Command duration — Set
min_time = 2000to show timing for slow commands; helps identify bottlenecks - Cloud context — Show AWS profile, K8s context, Terraform workspace; never deploy to wrong environment
- Custom modules — Use
[custom.name]for any shell command output; docker containers, VPN status, etc. - Presets — Start with a preset:
starship preset nerd-font-symbols -o ~/.config/starship.toml - Performance — Written in Rust; renders in <10ms; never slows down your terminal
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供跨 Shell 终端提示符配置能力,显著提升开发者日常终端使用体验
- 涵盖 Git 状态、语言版本、云上下文等高频开发场景,实用性强
Highlights
- description 清晰完整,准确描述 Starship 功能与适用范围
- 触发词覆盖全面,边界清晰,无歧义
Highlights
- 文档结构清晰,包含配置、安装、最佳实践等完整章节
- frontmatter 完整,示例详尽,便于用户理解与执行
Highlights
- 提供完整的 TOML 配置示例和跨平台安装命令
- 配置参数明确,覆盖主流 Shell 和操作系统,可靠性高
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 127 -
Cloud changes and possible charges
Preview changes and verify account, region, permissions and costs. Confirm creation, deployment or deletion separately.
Mentioned in main document · lines 144
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- starship.rs
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.