mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
939 B
939 B
title | description |
---|---|
Customizing Your Prompt | Learn how to override theme defaults with a custom configuration file. |
Overriding Theme Defaults
Oh My Posh lets you personalize your prompt by combining built-in themes with custom settings. If a theme (e.g., star.omp.json
) doesn’t fully suit you, you can override its defaults using a custom config file.
How It Works
- Themes are loaded from the
themes/
directory or a built-in set. - A custom config file (e.g.,
~/.myposh.omp.json
) can override specific properties like colors, segments, or styles. - When you run
oh-my-posh init
or set$POSH_THEME
, the custom file takes precedence.
Steps to Override a Theme
- Pick a Base Theme:
- Find a theme you like (e.g.,
themes/star.omp.json
) in the repo or your local install (oh-my-posh get themes
). - Copy it to a new file:
cp ~/.poshthemes/star.omp.json ~/.myposh.omp.json
- Find a theme you like (e.g.,