• Jyrki Pulliainen's avatar
    virtualenvwrapper: Deactivate only if in virtualenv · 833e6f59
    Jyrki Pulliainen authored
    If user manually deactivates the virtualenv when using this mode, zsh
    will produce following error:
    
        deactivate:12: command not found: virtualenv_deactivate
    
    To avoid this, check that the VIRTUAL_ENV flag is set before trying to
    automatically deactivate the virtual environment.
    
    Fixes #2185
    833e6f59
virtualenvwrapper.plugin.zsh 2.64 KB