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
- Have zsh running with the
af-magictheme - Activate a python virtual environment
- 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

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
- af-magic: fix dashed separator sizing and refactor Fixes #8081 — committed to mcornella/ohmyzsh by mcornella 4 years ago
- af-magic: fix dashed separator sizing and refactor Fixes #8081 — committed to emcrisostomo/oh-my-zsh by mcornella 4 years ago
- af-magic: fix dashed separator sizing and refactor Fixes #8081 — committed to brechetp/ohmyzsh by mcornella 4 years ago
- af-magic: fix dashed separator sizing and refactor Fixes #8081 — committed to dukegod/oh-my-zsh by mcornella 4 years ago
- af-magic: account for active conda envs in dash line See https://github.com/ohmyzsh/ohmyzsh/issues/8081#issuecomment-632182715 — committed to ohmyzsh/ohmyzsh by mcornella 4 years ago
- af-magic: account for active conda envs in dash line See https://github.com/ohmyzsh/ohmyzsh/issues/8081#issuecomment-632182715 — committed to shlomif/oh-my-zsh by mcornella 4 years ago
- af-magic: fix dashed separator sizing and refactor Fixes #8081 — committed to spiliopoulos/zsh-config by mcornella 4 years ago
- af-magic: account for active conda envs in dash line See https://github.com/ohmyzsh/ohmyzsh/issues/8081#issuecomment-632182715 — committed to MOSconfig/oh-my-zsh by mcornella 4 years ago
- af-magic: fix dashed separator sizing and refactor Fixes #8081 — committed to lparam/oh-my-zsh by mcornella 4 years ago
- af-magic: account for active conda envs in dash line See https://github.com/ohmyzsh/ohmyzsh/issues/8081#issuecomment-632182715 — committed to lparam/oh-my-zsh by mcornella 4 years ago
- update (#1) * Fast algorithm to determine grep alias flags This version tries whether grep supports all the flags together and progressively checks older flags if the grep test fails. This means... — committed to tokarthik/oh-my-zsh by tokarthik 4 years ago
- af-magic: fix dashed separator sizing and refactor Fixes #8081 — committed to crdant/oh-my-zsh-custom by mcornella 4 years ago
- af-magic: account for active conda envs in dash line See https://github.com/ohmyzsh/ohmyzsh/issues/8081#issuecomment-632182715 — committed to crdant/oh-my-zsh-custom by mcornella 4 years ago
- af-magic: account for active conda envs in dash line See https://github.com/ohmyzsh/ohmyzsh/issues/8081#issuecomment-632182715 — committed to dpond/ohmyzsh by mcornella 4 years ago
- af-magic: account for active conda envs in dash line See https://github.com/ohmyzsh/ohmyzsh/issues/8081#issuecomment-632182715 — committed to grantstephens/oh-my-zsh by mcornella 4 years ago
- af-magic: account for active conda envs in dash line See https://github.com/ohmyzsh/ohmyzsh/issues/8081#issuecomment-632182715 — committed to tinogomes/ohmyzsh by mcornella 4 years ago
- af-magic: fix dashed separator sizing and refactor Fixes #8081 — committed to tekniklr/oh-my-zsh by mcornella 4 years ago
you need to add virtualenv to your plugins on .zshrc file. in my zshrc config look like this
plugins=(git virtualenv)