Create customize.md

This commit is contained in:
Aya Nabil 2025-03-05 02:53:30 +02:00 committed by GitHub
parent a66586da69
commit 8c63715041
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,20 @@
---
title: Customizing Your Prompt
description: 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`) doesnt fully suit you, you can override its defaults using a custom config file.
### How It Works
1. Themes are loaded from the `themes/` directory or a built-in set.
2. A custom config file (e.g., `~/.myposh.omp.json`) can override specific properties like colors, segments, or styles.
3. When you run `oh-my-posh init` or set `$POSH_THEME`, the custom file takes precedence.
### Steps to Override a Theme
1. **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:
```bash
cp ~/.poshthemes/star.omp.json ~/.myposh.omp.json