4 Commits

Author SHA1 Message Date
Bert Willekens
e567e74410 Merge aab386e416 into 28cd9be54e 2024-09-19 11:31:06 +09:00
Zac Holland
28cd9be54e README: fix and distinguish syntax highlighting in Bash vs Fish snippets (#489)
Some checks failed
tests / tests (macos-13) (push) Has been cancelled
tests / tests (macos-14) (push) Has been cancelled
tests / tests (ubuntu-20.04) (push) Has been cancelled
tests / tests (ubuntu-22.04) (push) Has been cancelled
Co-authored-by: native-api <vano@mail.mipt.ru>
2024-09-18 22:08:52 +03:00
Ivan Pozdeev
aab386e416 Merge branch 'master' into pr 2022-10-12 21:32:12 +03:00
Bert Willekens
001e997e58 Update pyenv-virtualenv
Create a relative symlink.
2022-08-18 14:03:13 +02:00
2 changed files with 6 additions and 6 deletions

View File

@@ -30,25 +30,25 @@ From inside that directory you can:
1. **Check out pyenv-virtualenv into plugin directory**
```sh
```bash
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
```
For the Fish shell:
```sh
```fish
git clone https://github.com/pyenv/pyenv-virtualenv.git (pyenv root)/plugins/pyenv-virtualenv
```
2. (OPTIONAL) **Add `pyenv virtualenv-init` to your shell** to enable auto-activation of virtualenvs. This is entirely optional but pretty useful. See "Activate virtualenv" below.
```sh
```bash
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
```
**Fish shell note**: Add this to your `~/.config/fish/config.fish`
```sh
```fish
status --is-interactive; and pyenv virtualenv-init - | source
```
@@ -56,7 +56,7 @@ From inside that directory you can:
3. **Restart your shell to enable pyenv-virtualenv**
```sh
```bash
exec "$SHELL"
```

View File

@@ -625,7 +625,7 @@ fi
## Create symlink in the `versions` directory for backward compatibility
if [ -d "${VIRTUALENV_PATH}" ] && [ -n "${COMPAT_VIRTUALENV_PATH}" ]; then
ln -fs "${VIRTUALENV_PATH}" "${COMPAT_VIRTUALENV_PATH}"
ln -rfs "${VIRTUALENV_PATH}" "${COMPAT_VIRTUALENV_PATH}"
fi
if [ ! -e "${VIRTUALENV_PATH}/bin/pydoc" ]; then