oh-my-posh

Installs oh-my-posh, a shell prompt theme engine, with custom DB2 themes.

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

OptionTypeDefaultDescription
versionstringlatestoh-my-posh version to install
themestringdb2-dark.minimalPrompt theme to use

Bundled themes

Three custom themes are included:

ThemeDescription
db2-dark.minimalDark background, minimal segments, no icons required
db2-light.minimalLight background, minimal segments, no icons required
db2Full 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)