有没有办法使virtualenvwrapper在鱼壳中工作?
当尝试运行virtualenvwrapper命令,如workon,我得到以下错误:
当尝试运行virtualenvwrapper命令,如workon,我得到以下错误:
fish: Unknown command 'workon'
当我跑的时候
source /usr/local/bin/virtualenvwrapper.sh
我得到一个很长的错误,从以下开始:
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" ]
并以:
source: Error while reading file '/usr/local/bin/virtualenvwrapper.sh'
有很多替代方案,但是我发现最好的方法是
https://github.com/adambrenecki/virtualfish
这将为您提供一个包含virtualenv的.fish包装,其中包含您使用的所有virtualenvwrapper命令.