Overview
This configuration:- Customizes the prompt character to use the lambda symbol (λ)
- Shows green lambda for successful commands
- Shows red lambda for failed commands
- Maintains Starship’s smart defaults for everything else
Configuration File
starship.toml
Prompt Character
The[character] section customizes the prompt symbol that appears before your cursor.
Success Symbol
Error Symbol
The lambda (λ) symbol is commonly used in functional programming and mathematics, representing abstraction and functions. It’s a popular choice for developer prompts due to its minimalist aesthetic.
Visual Examples
- Successful Command
- Failed Command
- Command Chain
echo command completed successfully.Default Features
While this configuration only customizes the prompt character, Starship automatically provides:Git Integration
Shows current branch, modified files, and repository status without additional configuration.
Language Versions
Displays versions for detected languages and tools (Node.js, Python, Ruby, etc.).
Directory Path
Shows current directory with smart truncation for deep paths.
Execution Time
Displays command execution time for long-running commands.
Minimal Philosophy
This configuration follows a minimal approach:Why only customize the character?
Why only customize the character?
Starship’s defaults are excellent for most use cases. By only changing the prompt character, you get:
- All of Starship’s intelligent context detection
- Automatic language and tool version display
- Git integration without manual configuration
- A unique personal touch with the lambda symbol
Why lambda (λ)?
Why lambda (λ)?
The lambda symbol:
- Is concise and doesn’t take up much space
- Has cultural significance in programming (lambda calculus, anonymous functions)
- Looks clean and professional
- Is easily distinguishable from command output
Color significance
Color significance
- Green: Positive feedback, command succeeded
- Red: Alert, something failed and may need attention
- Bold: Makes the prompt character stand out from surrounding text
Customization Examples
If you want to extend the configuration, here are some popular options:Installation
The Starship configuration is symlinked during setup:Testing Changes
After modifyingstarship.toml, the changes take effect immediately in new shell sessions. To test in your current session:
Full Documentation
For complete Starship customization options, see the official documentation:- Starship Configuration - All available modules and options
- Presets - Pre-built configurations for different styles
- Advanced Config - Custom commands and conditional formatting
Related Configuration
- Shell Configuration - Starship initialization in .zshrc
- Git Configuration - Git settings that enhance Starship’s git module
- Zed Configuration - Editor settings with integrated terminal