Skip to content

Starship.toml Today

: Use the global format variable to define which modules appear and in what order.

Below is a basic configuration you can paste into your starship.toml file to get started: starship.toml

To configure the prompt, you need to create or edit the starship.toml file, which is typically located at ~/.config/starship.toml . Basic Configuration Structure : Use the global format variable to define

: Each prompt element (like directory , git_branch , or character ) has its own section for detailed styling. # Inserts a blank line between shell prompts

# Inserts a blank line between shell prompts add_newline = true # Define the order of modules in the prompt format = """ $directory\ $git_branch\ $git_status\ $character """ [directory] style = "blue" read_only = " " [character] success_symbol = "[➜](bold green)" error_symbol = "[➜](bold red)" [git_branch] symbol = " " style = "purple" Use code with caution. Copied to clipboard Key Tips for Setup

The starship.toml file uses TOML syntax to define the order and style of information in your terminal prompt.