Skip to content

Instantly share code, notes, and snippets.

@czuger
Created November 24, 2024 12:31
Show Gist options
  • Select an option

  • Save czuger/97c8aaa2a7380eda82f8217760031aea to your computer and use it in GitHub Desktop.

Select an option

Save czuger/97c8aaa2a7380eda82f8217760031aea to your computer and use it in GitHub Desktop.
How to show virtualenv in zsh prompt
# 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