How to setup virtualenvwrapper in zsh under linux mint?

Lord_JABA picture Lord_JABA · Jun 17, 2014 · Viewed 11.5k times · Source

I use virtualenvwrapper from apt. It's working OK with bash but I recently switched to zsh. Now when I try workon in zsh I get zsh: command not found: workon Because I'm using oh-my-zsh script/plugins I thought it will be sufficient to add virtualenv and virtualenvwrapper plugins to my .zshrc plugins=. But it did not help. What else I need to configure to make it work under zsh?

PS to be clear - I still can use bash for this - nothing broken here...

Answer

buluba89 picture buluba89 · Jun 17, 2014

I just test it on ubuntu 14.04 and i had the same problem. To fix it add this to your .zshrc

 source /usr/share/virtualenvwrapper/virtualenvwrapper.sh

or run this in terminal

 echo source /usr/share/virtualenvwrapper/virtualenvwrapper.sh >> ~/.zshrc