pyenv / pyenv-virtualenv

a pyenv plugin to manage virtualenv (a.k.a. python-virtualenv)
MIT License
6.18k stars 399 forks source link

Virtual env name doesn't show after reloading zsh #434

Open nguyendviet opened 1 year ago

nguyendviet commented 1 year ago

Too many issues will kill our team's development velocity, drastically. Make sure you have checked all steps below.

Prerequisite

Description

If I start my virtual environment for the first time, I can see it:

(my-env) user@machine %

However, if I reload my zsh:

source ~/.zshrc

The name disappears even though the env is still activated

user@machine %

I can only check with:

pyenv virtualenvs

I added a custom script in my .zshrc to show the virtual env name after reloading.