HeadlinesBriefing favicon HeadlinesBriefing.com

Customize MacOS Terminal with Starship Prompt

DEV Community •
×

Managing multiple CLIs and their versions creates terminal clutter. A developer switched from Oh My Zsh to Starship for a cleaner, declarative approach. This guide details installing Starship via Homebrew, integrating it with Zsh, and adding optional plugins like syntax highlighting for a more efficient workflow.

The setup requires installing a Nerd Font like FiraCode to render icons correctly. Configuration happens in `starship.toml`, where you define a custom prompt format. This allows dynamic context display for tools like AWS profiles, Node.js, and Java/Gradle, showing relevant versions and status directly in your command line.

Once configured, Starship updates your prompt automatically. Switching AWS profiles or Node.js versions via `nvm use` instantly reflects in the terminal. It also highlights Git repository status, like branches and modified files, reducing cognitive load for developers juggling complex projects across different environments.