Created
November 24, 2024 12:31
-
-
Save czuger/97c8aaa2a7380eda82f8217760031aea to your computer and use it in GitHub Desktop.
How to show virtualenv in zsh prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # First ensure you enabled auto-activation of virtualenvs | |
| # https://github.com/pyenv/pyenv-virtualenv | |
| # echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshrc | |
| # Then follow | |
| # https://barker.codes/blog/adding-the-virtual-environment-name-to-your-prompt-with-oh-my-zsh/ | |
| # May also face this : | |
| # https://stackoverflow.com/questions/38928717/virtualenv-name-not-show-in-zsh-prompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment