mirror of
https://github.com/nushell/nushell.git
synced 2025-06-20 18:08:36 +02:00
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:
parent
fda181d566
commit
55240d98a5
@ -202,14 +202,12 @@ $env.config.shell_integration.osc2 = true
|
|||||||
# osc7 (bool):
|
# osc7 (bool):
|
||||||
# Nushell will report the current directory to the terminal using OSC 7. This is useful when
|
# Nushell will report the current directory to the terminal using OSC 7. This is useful when
|
||||||
# spawning new tabs in the same directory.
|
# 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 = ($nu.os-info.name != windows)
|
||||||
$env.config.shell_integration.osc7 = true
|
|
||||||
|
|
||||||
# osc9_9 (bool):
|
# osc9_9 (bool):
|
||||||
# Enables/Disables OSC 9;9 support, originally a ConEmu terminal feature. This is an
|
# 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.
|
# 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 = ($nu.os-info.name == windows)
|
||||||
$env.config.shell_integration.osc9_9 = false
|
|
||||||
|
|
||||||
# osc8 (bool):
|
# osc8 (bool):
|
||||||
# When true, the `ls` command will generate clickable links that can be launched in another
|
# When true, the `ls` command will generate clickable links that can be launched in another
|
||||||
|
Loading…
x
Reference in New Issue
Block a user