docs(transient): add PSReadline context

This commit is contained in:
Jan De Dobbeleer 2022-02-09 09:39:43 +01:00 committed by Jan De Dobbeleer
parent c7a446c081
commit 08dae53acd

View file

@ -73,12 +73,19 @@ properties below - defaults to `{{ .Shell }}> `
<TabItem value="pwsh">
Import/invoke Oh My Posh in your `$PROFILE` and add the following line below:
Invoke Oh My Posh in your `$PROFILE` and add the following line below.
```powershell
oh-my-posh --init --shell pwsh --config $env:POSH_THEMES_PATH/jandedobbeleer.omp.json | Invoke-Expression
// highlight-start
Enable-PoshTransientPrompt
// highlight-end
```
:::caution
If you import **PSReadLine** separately, make sure to import it before the `Enable-PoshTransientPrompt` command.
:::
Restart your shell or reload your `$PROFILE` using `. $PROFILE` for the changes to take effect.
</TabItem>