From da3fcb7eb7a2695f01768f26af7a82900915e943 Mon Sep 17 00:00:00 2001 From: Jordan Stewart Date: Sun, 18 May 2025 19:20:30 +1000 Subject: [PATCH] README: Add shell setup instructions for nushell (#2916) --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 316cc1b4..f2c1b840 100644 --- a/README.md +++ b/README.md @@ -252,6 +252,24 @@ See [Advanced configuration](#advanced-configuration) for details and more confi ``` +#### Nushell + +
+ + 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" + ~~~ + +
+ + ### C. Restart your shell ----