Skip to content

Commit

Permalink
Merge pull request #384 from native-api/profile_2_rc
Browse files Browse the repository at this point in the history
~/.*rc should be modified instead of ~/.*profile
  • Loading branch information
anton-petrov authored May 9, 2021
2 parents 8c7ef73 + 90f7b99 commit 6742d0e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,17 @@ From inside that directory you can:
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
$ echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
$ echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
```

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

```sh
status --is-interactive; and pyenv init - | source
status --is-interactive; and pyenv virtualenv-init - | source
```

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

**Pyenv note**: You may also need to add `eval "$(pyenv init -)"` to your profile if you haven't done so already.
3. **Restart your shell to enable pyenv-virtualenv**

```sh
Expand Down

0 comments on commit 6742d0e

Please sign in to comment.