Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

πŸ€– Artificial Intelligence
☁️ Cloud and Infrastructure
πŸ’Ύ Data and Databases
πŸ’Ό Professional Skills
🎯 Programming and Development
πŸ”’ Security and Networking
πŸ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
Β© 2026 CheatGridβ„’. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Starship and Oh My Posh Cross-Shell Prompts Cheat Sheet

Starship and Oh My Posh Cross-Shell Prompts Cheat Sheet

Back to Operating Systems and CLI
Updated 2026-05-21
Next Topic: System Administration Cheat Sheet

Starship and Oh My Posh are the two dominant cross-shell prompt engines of 2025–2026, both written in compiled languages (Rust and Go respectively) that render beautifully styled, information-rich prompts across bash, zsh, fish, PowerShell, Nushell, and more from a single configuration file. They solve the problem of maintaining separate prompt setups per shell and per OS β€” write one config, carry it everywhere. The key insight practitioners need upfront: both tools require a Nerd Font installed in the terminal emulator to render glyphs correctly, and the primary performance lever for both is disabling or limiting modules you don't need rather than changing the renderer.

What This Cheat Sheet Covers

This topic spans 16 focused tables and 189 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Starship Installation by Shell and OSTable 2: Oh My Posh Installation by ShellTable 3: Starship Configuration File Structure (starship.toml)Table 4: Starship Built-in Modules ReferenceTable 5: Starship Custom Modules and Advanced ConfigurationTable 6: Starship Style Strings and Color ReferenceTable 7: Starship PresetsTable 8: Oh My Posh Configuration StructureTable 9: Oh My Posh Templates and Go Template SyntaxTable 10: Oh My Posh Colors and PalettesTable 11: Oh My Posh Themes and Built-in PresetsTable 12: Oh My Posh Transient Prompt, Tooltips, and Secondary PromptsTable 13: Nerd Fonts Installation and SelectionTable 14: Performance and Startup Time TuningTable 15: Comparison β€” Starship vs Oh My Posh vs Powerlevel10kTable 16: Dotfiles, Cross-Machine Sharing, and Troubleshooting

Table 1: Starship Installation by Shell and OS

Installing Starship takes two steps: getting the binary onto the system, then adding a one-line init call to the shell's startup file. The init command differs slightly per shell; getting it into the right file is the most common stumbling block.

CommandExampleDescription
Install (macOS/Linux)
curl -sS | sh
β€’ Universal install script
β€’ places the binary in /usr/local/bin. Also available via brew install starship.
Install (Windows)
winget install --id Starship.Starship
scoop install starship
choco install starship
β€’ Three package-manager options on Windows
β€’ winget is the most widely available
Install (cargo)
cargo install starship --locked
β€’ Cross-platform installation from source via Rust's package registry
β€’ requires Rust toolchain
bash init
eval "$(starship init bash)"
β€’ Add to ~/.bashrc (or ~/.bash_profile)
β€’ runs the init at each new bash session
zsh init
eval "$(starship init zsh)"
Add as last line of ~/.zshrc.
fish init
starship init fish | source
β€’ Add to ~/.config/fish/config.fish
β€’ fish uses pipe-to-source instead of eval

More in Operating Systems and CLI

  • SSH and OpenSSH Configuration Mastery Cheat Sheet
  • System Administration Cheat Sheet
  • AWS CLI Cheat Sheet
  • GCP CLI Cheat Sheet
  • Linux Text Processing with grep, sed, and awk Cheat Sheet
  • systemd and Linux Service Management Cheat Sheet
View all 48 topics in Operating Systems and CLI