vfox
vfox copied to clipboard
[BUG]: 本人用的windows上的msys2里面装的zsh,挂载时候出问题
Version Windows
Describe the bug echo 'eval "$(vfox activate zsh)"' >> ~/.zshrc 使用上述命令挂载vfox, 结果连ls这样的命令都找不到了, 无法使用vfox use -p这样的命令 报错Warning: The current shell lacks hook support or configuration. It has switched to global scope automatically
然后在命令里输入 vfox activate zsh 调试信息如下, 请问如何解决
if [[ -z "$__VFOX_PID" ]]; then export PATH=$'C:\Users\Administrator\.version-fox\temp\1751040000-9192\nodejs;C:\Users\Administrator\.version-fox\cache\nodejs\current;C:\msys64\ucrt64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\dotnet;C:\Program Files\vfox;D:\software\Microsoft VS Code\bin;D:\software\cursor\resources\app\bin;D:\software\\xe5\xbe\xae\xe4\xbf\xa1web\xe5\xbc\x80\xe5\x8f\x91\xe8\x80\x85\xe5\xb7\xa5\xe5\x85\xb7\dll;C:\Users\Administrator\AppData\Local\pnpm;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl';export __VFOX_SHELL=$'zsh';export __VFOX_CURTMPPATH=$'C:\Users\Administrator\.version-fox\temp\1751040000-9192';
export __VFOX_PID=$$;
_vfox_hook() { trap -- '' SIGINT; eval "$("C:/Program Files/vfox/vfox.exe" env -s zsh)"; trap - SIGINT; } typeset -ag precmd_functions; if [[ -z "${precmd_functions[(r)_vfox_hook]+1}" ]]; then precmd_functions=( _vfox_hook ${precmd_functions[@]} ) fi typeset -ag chpwd_functions; if [[ -z "${chpwd_functions[(r)_vfox_hook]+1}" ]]; then chpwd_functions=( _vfox_hook ${chpwd_functions[@]} ) fi
trap 'vfox env --cleanup' EXIT fi