Skip to content

Instantly share code, notes, and snippets.

@partrita
Last active January 13, 2025 01:15
Show Gist options
  • Save partrita/6f623bdfec93b15a86cc16afe26544d4 to your computer and use it in GitHub Desktop.
Save partrita/6f623bdfec93b15a86cc16afe26544d4 to your computer and use it in GitHub Desktop.
~/.config/starship.toml

Configuration

All configuration for starship is done in this TOML file:

starship preset nerd-font-symbols -o ~/.config/starship.toml

To get started configuring starship, edit the following file: ~/.config/starship.toml.

# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'

# Inserts a blank line between shell prompts
add_newline = true

# Replace the '❯' symbol in the prompt with '➜'
[character] # The name of the module we are configuring is 'character'
success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
error_symbol = '[➜](bold red)'

# Disable the package module, hiding it from the prompt completely
[package]
disabled = true
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = true
# Replace the '❯' symbol in the prompt with '➜'
[character] # The name of the module we are configuring is 'character'
success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
error_symbol = '[➜](bold red)'
# Disable the package module, hiding it from the prompt completely
[package]
disabled = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment