From 08dae53acd5a9c4727e8dcdc95a84b8e51aeac26 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Wed, 9 Feb 2022 09:39:43 +0100 Subject: [PATCH] docs(transient): add PSReadline context --- docs/docs/config-transient.mdx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/docs/config-transient.mdx b/docs/docs/config-transient.mdx index 86b2f738..98ba8084 100644 --- a/docs/docs/config-transient.mdx +++ b/docs/docs/config-transient.mdx @@ -73,12 +73,19 @@ properties below - defaults to `{{ .Shell }}> ` -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.