Starship.toml 【360p】
: Each prompt element (like directory , git_branch , or character ) has its own section for detailed styling.
: If you want to use special characters like $ , [ , or ] , you must escape them (e.g., \$ ) to prevent Starship from interpreting them as variables. Example Configuration starship.toml
: After saving the file, open a new terminal window or tab to see the updated look immediately. : Each prompt element (like directory , git_branch
: Most "pro" configurations use special icons. You must install a Nerd Font and set it as your terminal's font for these symbols to display correctly. : Most "pro" configurations use special icons
# 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.