Starship.toml Apr 2026
: 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
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 : Each prompt element (like directory , git_branch