mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -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">
|
<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
|
```powershell
|
||||||
|
oh-my-posh --init --shell pwsh --config $env:POSH_THEMES_PATH/jandedobbeleer.omp.json | Invoke-Expression
|
||||||
|
// highlight-start
|
||||||
Enable-PoshTransientPrompt
|
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.
|
Restart your shell or reload your `$PROFILE` using `. $PROFILE` for the changes to take effect.
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
Loading…
Reference in a new issue