Explorar el Código

Make adding $PYENV_ROOT/bin to PATH independent of other software (#2837)

Fixes breakage in WSL with Pyenv-win installed in the host system;
doesn't affect other supported installation scenarios.
pull/2839/head
native-api hace 10 meses
cometido por GitHub
padre
commit
087793a660
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. +2
    -2
      README.md
  2. +1
    -1
      libexec/pyenv-init

+ 2
- 2
README.md Ver fichero

@ -317,14 +317,14 @@ See [Advanced configuration](#advanced-configuration) for details and more confi
* to add to `~/.bash_profile`:
~~~ bash
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
~~~
- For **Zsh**:
~~~ zsh
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
~~~

+ 1
- 1
libexec/pyenv-init Ver fichero

@ -165,7 +165,7 @@ function help_() {
fi
echo
echo 'export PYENV_ROOT="$HOME/.pyenv"'
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"'
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"'
echo 'eval "$(pyenv init -)"'
;;
esac

Cargando…
Cancelar
Guardar