Просмотр исходного кода

Adjust suggested shell startup code to support Pyenv with Pyenv-Win in WSL (#3132)

There's a complaint that this results in duplicate PATH entries in nested shells, will deal with that separately
pull/3135/head
native-api 1 год назад
committed by GitHub
Родитель
Сommit
527d8fab3e
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      README.md

+ 2
- 2
README.md Просмотреть файл

@ -190,7 +190,7 @@ See [Advanced configuration](#advanced-configuration) for details and more confi
```bash
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
```
3. Then, if you have `~/.profile`, `~/.bash_profile` or `~/.bash_login`, add the commands there as well.
@ -199,7 +199,7 @@ See [Advanced configuration](#advanced-configuration) for details and more confi
* to add to `~/.profile`:
``` bash
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
echo 'eval "$(pyenv init -)"' >> ~/.profile
```
* to add to `~/.bash_profile`:

Загрузка…
Отмена
Сохранить