如何让virtualenvwrapper在鱼壳中工作?

oxt*_*tay 21 shell virtualenv virtualenvwrapper fish

有没有办法在鱼壳里virtualenvwrapper工作?尝试运行virtualenvwrapper命令时workon,我收到以下错误:

fish: Unknown command 'workon'
Run Code Online (Sandbox Code Playgroud)

当我跑

source /usr/local/bin/virtualenvwrapper.sh
Run Code Online (Sandbox Code Playgroud)

我从一开始就遇到很长的错误:

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" ]
Run Code Online (Sandbox Code Playgroud)

并以:结尾

source: Error while reading file '/usr/local/bin/virtualenvwrapper.sh'
Run Code Online (Sandbox Code Playgroud)

use*_*349 15

有很多选择,但我发现的最好的方法是https://github.com/adambrenecki/virtualfish

这将为您提供您习惯的所有命令的.fish包装.virtualenvvirtualenvwrapper