From bcc369388a0a36c83f638dc49cbfa31405374625 Mon Sep 17 00:00:00 2001 From: small13999 <65117714+small13999@users.noreply.github.com> Date: Tue, 29 Apr 2025 20:19:22 +0200 Subject: [PATCH] Update new-tab-same-directory.md with the Nushell solution --- TerminalDocs/tutorials/new-tab-same-directory.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/TerminalDocs/tutorials/new-tab-same-directory.md b/TerminalDocs/tutorials/new-tab-same-directory.md index ac2b942a..a315a81f 100644 --- a/TerminalDocs/tutorials/new-tab-same-directory.md +++ b/TerminalDocs/tutorials/new-tab-same-directory.md @@ -155,6 +155,14 @@ Add the following line to the end of your `.bashrc` file: PROMPT_COMMAND=${PROMPT_COMMAND:+"$PROMPT_COMMAND; "}'printf "\e]9;9;%s\e\\" "`cygpath -w "$PWD" -C ANSI`"' ``` +#### Nushell + +Add the following line to your `config.nu` config file (use `config nu` in Nushell to open it): + +``` +$env.config.shell_integration.osc9_9 = true +``` + > [!NOTE] > Don't see your favorite shell here? If you figure it out, feel free to [open a PR](https://github.com/MicrosoftDocs/terminal/edit/main/TerminalDocs/tutorials/new-tab-same-directory.md) > to contribute a solution for your preferred shell!