Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make virtualenvwrapper work in fish shell?

Tags:

Is there any way to make virtualenvwrapper work in fish shell? When trying to run virtualenvwrapper commands, like workon, I get the following error:

fish: Unknown command 'workon' 

And when I run

source /usr/local/bin/virtualenvwrapper.sh 

I get a very long error starting with:

fish: Expected a command name, got token of type 'Run job in background'. Did you mean 'COMMAND; and COMMAND'? See the help section for the 'and' builtin command by typing 'help and'.  /usr/local/bin/virtualenvwrapper.sh (line 67): if [ "$OS" = "Windows_NT" ] && [ "$MSYSTEM" = "MINGW32" ] 

and ending with:

source: Error while reading file '/usr/local/bin/virtualenvwrapper.sh' 
like image 278
oxtay Avatar asked Mar 18 '14 20:03

oxtay


1 Answers

There are a number of alternatives, but the best approach I've found is https://github.com/adambrenecki/virtualfish

That will give you a .fish wrapper around virtualenv with all the virtualenvwrapper commands you are used to.

like image 74
user3467349 Avatar answered Oct 07 '22 00:10

user3467349