Skip to content

Commit 28cd9be

Browse files
diericxnative-api
andauthored
README: fix and distinguish syntax highlighting in Bash vs Fish snippets (#489)
Co-authored-by: native-api <[email protected]>
1 parent d4c9655 commit 28cd9be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,33 @@ From inside that directory you can:
3030

3131
1. **Check out pyenv-virtualenv into plugin directory**
3232

33-
```sh
33+
```bash
3434
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
3535
```
3636

3737
For the Fish shell:
3838

39-
```sh
39+
```fish
4040
git clone https://github.com/pyenv/pyenv-virtualenv.git (pyenv root)/plugins/pyenv-virtualenv
4141
```
4242

4343
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.
4444

45-
```sh
45+
```bash
4646
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
4747
```
4848

4949
**Fish shell note**: Add this to your `~/.config/fish/config.fish`
5050

51-
```sh
51+
```fish
5252
status --is-interactive; and pyenv virtualenv-init - | source
5353
```
5454

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

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

59-
```sh
59+
```bash
6060
exec "$SHELL"
6161
```
6262

0 commit comments

Comments
 (0)