Skip to content

Commit

Permalink
mark fish snippets as such
Browse files Browse the repository at this point in the history
  • Loading branch information
native-api authored Sep 18, 2024
1 parent 4240bfb commit 6ca5805
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,33 @@ 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
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
```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
```

**Zsh note**: Modify your `~/.zshrc` file instead of `~/.bashrc`.

3. **Restart your shell to enable pyenv-virtualenv**

```sh
```bash
exec "$SHELL"
```

Expand Down

0 comments on commit 6ca5805

Please sign in to comment.