mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
docs(transient): add PSReadline context
This commit is contained in:
parent
c7a446c081
commit
08dae53acd
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue