From a6b1a90f819d6c86c76a6bf45be5e143ec19da66 Mon Sep 17 00:00:00 2001 From: Matt Wojciakowski Date: Thu, 1 Sep 2022 14:26:43 -0700 Subject: [PATCH] Add note about restoring CWD Alternative way to set up is in issue https://github.com/MicrosoftDocs/terminal/issues/546. Adding this note to resolve https://github.com/MicrosoftDocs/terminal/issues/546. --- TerminalDocs/tutorials/custom-prompt-setup.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TerminalDocs/tutorials/custom-prompt-setup.md b/TerminalDocs/tutorials/custom-prompt-setup.md index 4c694996..b8cadff0 100644 --- a/TerminalDocs/tutorials/custom-prompt-setup.md +++ b/TerminalDocs/tutorials/custom-prompt-setup.md @@ -84,6 +84,9 @@ Now, each new PowerShell instance will start by importing Oh My Posh and setting > [!NOTE] > This is not your Windows Terminal profile. Your PowerShell profile is a script that runs every time PowerShell starts. [Learn more about PowerShell profiles](/powershell/module/microsoft.powershell.core/about/about_profiles). +> [!TIP] +> Oh My Posh can be configured to restore the current working directory by enabling `osc99` in the General Settings. See the [Oh My Posh docs](https://ohmyposh.dev/docs/configuration/overview#general-settings). + ## Customize your WSL prompt with Oh My Posh Oh My Posh now allows you to customize WSL prompts, just like you would a PowerShell prompt using [built-in themes](https://ohmyposh.dev/docs/themes).