This packages the oh-my-posh init into a packer.nu package.
{packages: [
{source: 'jan9103/nushell_oh-my-posh' as: 'oh-my-posh'
config: {
theme: 'https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/jandedobbeleer.omp.json'
}
}
]}
config-theme can contain anything usable as --config
argument for the init command.
More info: https://ohmyposh.dev/docs/installation/customize
you can set the theme to ""
or just not define it to use the default.
The code is based on: the official init (MIT license)
Modifications:
- No absolute paths
- Use packer config for the theme