Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: fix and distinguish syntax highlighting in Bash vs Fish snippets #489

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 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
```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
Loading