README: Add shell setup instructions for nushell (#2916)

This commit is contained in:
Jordan Stewart 2025-05-18 19:20:30 +10:00 committed by GitHub
parent 018ca73444
commit da3fcb7eb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -252,6 +252,24 @@ See [Advanced configuration](#advanced-configuration) for details and more confi
``` ```
</details> </details>
#### Nushell
<details>
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)
isn't currently supported.
~~~ nu
$env.PYENV_ROOT = "~/.pyenv" | path expand
if (( $"($env.PYENV_ROOT)/bin" | path type ) == "dir") {
$env.PATH = $env.PATH | prepend $"($env.PYENV_ROOT)/bin" }
$env.PATH = $env.PATH | prepend $"(pyenv root)/shims"
~~~
</details>
### C. Restart your shell ### C. Restart your shell
---- ----