A simple command-line tool that automatically adds transient-prompt to your oh-my-posh configuration, based on the rightest left segment of your input line.
shell
cargo install posh-transient
```shell
posh-transient
If an output folder (instead of a preexisted file) is specified, assume your input is theme.json
, the output filename would be theme.transient.json
.
oh-my-posh init
Replace your configuration path to an invocation of this program.
Take pwsh as an example:
```powershell
oh-my-posh init pwsh --config "$env:POSHTHEMESPATH/catppuccin_mocha.omp.json" | Invoke-Expression
oh-my-posh init pwsh --config (&posh-transient "$env:POSHTHEMESPATH/catppuccin_mocha.omp.json" "
posh-transient
will exit early if the destination file is already generated.