如何使virtualenvwrapper在鱼壳中工作?

有没有办法使virtualenvwrapper在鱼壳中工作?
当尝试运行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命令.

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...