ohmyzsh: af-magic and python environment variables creates line overflow

Describe the bug If using Python Virtual environments, af-magic theme puts the virtualenv at the front of the line separator and pushes the line into the next terminal line

To Reproduce

  1. Have zsh running with the af-magic theme
  2. Activate a python virtual environment
  3. It should display immediately

Expected behavior The environment name should display on the command line or the line should justify properly to not create overflow

Screenshots or recordings Screen Shot 2019-08-15 at 9 12 00 AM

System:

  • OS: macOS and Fedora 30
  • Zsh version: 5.7.1
  • Terminal emulator: Hyper and Gnome Terminal

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (8 by maintainers)

Commits related to this issue

Most upvoted comments

you need to add virtualenv to your plugins on .zshrc file. in my zshrc config look like this plugins=(git virtualenv)