Starship is a minimal, blazing-fast, and infinitely customizable prompt for any shell. Written in Rust, it works with Bash, Zsh, Fish, PowerShell, and more.
📑 Table of Contents
Key Features
- Fast: Written in Rust for speed
- Cross-Shell: Works with any shell
- Customizable: TOML configuration
- Context-Aware: Shows relevant info
- Icon Support: Nerd Font glyphs
Installation
Install Starship:
curl -sS https://starship.rs/install.sh | sh
# Add to ~/.bashrc
eval "$(starship init bash)"
# Or ~/.zshrc
eval "$(starship init zsh)"
Usage Examples
Configure in ~/.config/starship.toml:
[character]
success_symbol = "[➜](bold green)"
error_symbol = "[➜](bold red)"
[git_branch]
symbol = " "
style = "bold purple"
[nodejs]
symbol = " "
[directory]
truncation_length = 3
truncate_to_repo = true
Benefits
Starship delivers a beautiful prompt across all shells. Its context-aware modules show only relevant information, keeping the prompt clean and informative.
Was this article helpful?