formatting

[no ci]
This commit is contained in:
Ivan Pozdeev 2025-05-18 12:06:55 +03:00
parent 2880479b88
commit b8b9d7bcac

View File

@ -256,15 +256,15 @@ See [Advanced configuration](#advanced-configuration) for details and more confi
<details> <details>
Add the following lines to your `config.nu` to add Pyenv and its shims to your `PATH`. Add the following lines to your `config.nu` to add Pyenv and its shims to your `PATH`.
Shell integration (completions and subcommands changing the shell's state) Shell integration (completions and subcommands changing the shell's state)
isn't currently supported. isn't currently supported.
~~~ nu ~~~ nu
$env.PYENV_ROOT = "~/.pyenv" | path expand $env.PYENV_ROOT = "~/.pyenv" | path expand
if (( $"($env.PYENV_ROOT)/bin" | path type ) == "dir") { if (( $"($env.PYENV_ROOT)/bin" | path type ) == "dir") {
$env.PATH = $env.PATH | prepend $"($env.PYENV_ROOT)/bin" } $env.PATH = $env.PATH | prepend $"($env.PYENV_ROOT)/bin" }
$env.PATH = $env.PATH | prepend $"(pyenv root)/shims" $env.PATH = $env.PATH | prepend $"(pyenv root)/shims"
~~~ ~~~
</details> </details>