From 6ab9b2df3ffce71d2562854eb75a017483c3bcfe Mon Sep 17 00:00:00 2001 From: Jordan Stewart Date: Thu, 29 Feb 2024 16:25:14 +1100 Subject: [PATCH] Add instructions for nushell on MacOS, Linux and Windows --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 89adb548..a7bd2e54 100644 --- a/README.md +++ b/README.md @@ -358,6 +358,24 @@ See [Advanced configuration](#advanced-configuration) for details and more confi ~~~ fish pyenv init - | source ~~~ + + - For **Nushell**: + + On MacOS or Linux, the path can be added like: + + ~~~ nu + $env.PATH = ($env.PATH | split row (char esep) | prepend $"(pyenv root)/shims") + ~~~ + + Windows users need to install [pyenv-win](https://github.com/pyenv-win/pyenv-win) + and execute the `Get-Command pyenv` command in PowerShell to get the path of `pyenv.ps1` after the installation. + + The result usually looks like: `C:\Users\\.pyenv\pyenv-win\bin\pyenv.ps1` + + Then add the path of pyenv to your Nushell PATH: + ~~~ nu + $env.Path = ($env.Path | split row (char esep) | prepend $"~/.pyenv/pyenv-win/bin/pyenv.ps1") + ~~~ **Bash warning**: There are some systems where the `BASH_ENV` variable is configured to point to `.bashrc`. On such systems, you should almost certainly put the