Starship 🛸

The minimal, blazing-fast, and infinitely customizable prompt for any shell! - Home

see also

# Feature

  • live update
  • change windows title
  • right prompt
  • continuation prompt

# Transient Prompt

Transient prompt allows you to change your prompt after you execute your command. This can be useful if you’d prefer a simpler prompt in your scrollback and only keep the relevant info on your current prompt.

Only supported by

# Install 📥

$ nix profile install nixpkgs#starship

require a Nerd font?

  • a least a font with emoji, but it seems that all distro have that now

# Configuration ⮺

cf Chez moi

$ mkdir -p ~/.config && touch ~/.config/starship.toml

# Enable ⮺

Starship only make sense for interactive shell, so don’t invoke it in .profile where it may not already be accessible (for eg if loaded via nix)

by shell

# .bashrc
$ eval "$(starship init bash)"

# fish
$ starship init fish | source

# promt by shell ⮺

Define the shell in an env.variable

Then use it in starship

format = '''${env_var.SHELL}(bold green) '''

[env_var.SHELL]
variable = "STARSHIP_SHELL_STYLE"
format = "[$env_value]($style) "
style = "bold green"

# Example ⮺

# Alternatives

  • ohmyposh - support transient prompt for zsh
Written on October 2, 2020, Last update on July 24, 2026
shell