Update config nu --doc to represent OSC 7 and 9;9 better (#15979)

- fixes #15975

# Description

This changes the `config nu --doc` output for OSC 7 and 9;9 to represent
better what happens on Windows machines.

This is the current behavior internally:

5be8717fe8/crates/nu-protocol/src/config/shell_integration.rs (L18-L27)

And with this PR the `config nu --doc` better reflects that behavior,
thanks to @fdncred for that idea.

# User-Facing Changes

None

# Tests + Formatting


- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting


---------

Co-authored-by: Bahex <Bahex@users.noreply.github.com>
This commit is contained in:
Piepmatz 2025-06-16 21:42:07 +02:00 committed by GitHub
parent fda181d566
commit 55240d98a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -202,14 +202,12 @@ $env.config.shell_integration.osc2 = true
# osc7 (bool):
# Nushell will report the current directory to the terminal using OSC 7. This is useful when
# spawning new tabs in the same directory.
# This is disabled by default on Windows in favor of the `osc9_9` option.
$env.config.shell_integration.osc7 = true
$env.config.shell_integration.osc7 = ($nu.os-info.name != windows)
# osc9_9 (bool):
# Enables/Disables OSC 9;9 support, originally a ConEmu terminal feature. This is an
# alternative to OSC 7 which also communicates the current path to the terminal.
# This is enabled by default on Windows as it is used by the Windows Terminal.
$env.config.shell_integration.osc9_9 = false
$env.config.shell_integration.osc9_9 = ($nu.os-info.name == windows)
# osc8 (bool):
# When true, the `ls` command will generate clickable links that can be launched in another