From 4240bfbf17fda41fec63093fef85621149e6765e Mon Sep 17 00:00:00 2001 From: Zac Holland Date: Wed, 18 Sep 2024 11:47:19 -0700 Subject: [PATCH 1/2] Fix bash bug in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 01c18d0..804a8da 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ From inside that directory you can: For the Fish shell: ```sh - git clone https://github.com/pyenv/pyenv-virtualenv.git (pyenv root)/plugins/pyenv-virtualenv + 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. From 6ca580571616c051f922ea02c44abd69fdadc640 Mon Sep 17 00:00:00 2001 From: native-api Date: Wed, 18 Sep 2024 22:06:34 +0300 Subject: [PATCH 2/2] mark fish snippets as such --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 804a8da..0f51a06 100644 --- a/README.md +++ b/README.md @@ -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 - 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 ``` @@ -56,7 +56,7 @@ From inside that directory you can: 3. **Restart your shell to enable pyenv-virtualenv** - ```sh + ```bash exec "$SHELL" ```