$linuxjunkies
>

starship(1)

Starship is a minimal, blazing-fast, and infinitely customizable shell prompt written in Rust.

UbuntuDebianFedoraArch

Synopsis

starship [COMMAND] [OPTIONS]

Description

Starship replaces your shell prompt with a fast, customizable prompt that displays relevant information about your project and system. It works with bash, zsh, fish, PowerShell, and other shells, automatically adapting to your environment and showing context like Git status, language versions, and command execution time.

The prompt is configured via a TOML file located at ~/.config/starship.toml, allowing you to customize colors, symbols, and which modules to display. Starship is written in Rust for performance and can be extended with custom modules.

Common options

FlagWhat it does
init [SHELL]Initialize starship for your shell (bash, zsh, fish, powershell, etc.)
configView or edit the configuration file
bug-reportPrint a report for bug submissions with system and shell information
print-configPrint the current configuration as TOML
renderRender the prompt with optional context parameters
--profile [PROFILE]Load a specific configuration profile
--config [PATH]Use a custom configuration file path
--log-level [LEVEL]Set logging verbosity (trace, debug, info, warn, error)

Examples

Initialize starship for Zsh and load it in your current shell

starship init zsh | source

Open the starship configuration file in your default editor

starship config

Display the current starship configuration as TOML to stdout

starship print-config

Add starship initialization to your Bash profile for persistence

echo 'eval "$(starship init bash)"' >> ~/.bashrc

Generate a detailed bug report with system and environment information

starship bug-report

Render and display the prompt using the nerd-font profile

starship render --profile nerd-font

Render the prompt using a custom configuration file

STARSHIP_CONFIG=~/.config/starship-minimal.toml starship render

Enable shell completions for Zsh (improves command suggestions)

starship completions zsh | source

Related commands