Current version: 0.2.0 | oh-my-posh docs
Usage
"features": {
"ghcr.io/devopsbuildingblocks/devcontainer-features/oh-my-posh:0": {}
}
With a custom theme:
"ghcr.io/devopsbuildingblocks/devcontainer-features/oh-my-posh:0": {
"theme": "db2-light.minimal"
}
Options
| Option | Type | Default | Description |
|---|---|---|---|
version | string | latest | oh-my-posh version to install |
theme | string | db2-dark.minimal | Prompt theme to use |
Bundled themes
Three custom themes are included:
| Theme | Description |
|---|---|
db2-dark.minimal | Dark background, minimal segments, no icons required |
db2-light.minimal | Light background, minimal segments, no icons required |
db2 | Full theme with Nerd Font icons |
The db2 theme requires a Nerd Font. The .minimal variants work in any terminal.
Using built-in oh-my-posh themes
Any theme name from the oh-my-posh theme gallery will be fetched from GitHub at install time:
"ghcr.io/devopsbuildingblocks/devcontainer-features/oh-my-posh:0": {
"theme": "tokyo"
}
Commands: omp-themes (list available themes), omp-theme <name> (switch theme)