Starship.toml
: Use the global format variable to define which modules appear and in what order.
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 starship.toml
: If you don't want to write everything from scratch, Starship offers Presets like "No-Runtime-Versions" or "Tokyo Night" that you can copy-paste into your file. Configuration - Starship : Use the global format variable to define
: 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. Configuration - Starship : Most "pro" configurations use
# 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