很抱歉,我在这里问这样的问题,但我完全不知道是什么原因造成的,而且我似乎无法在其他任何地方找到任何信息。每当我在我的计算机(运行 MacOS Big Sur 11.4 的英特尔 Mac)上启动 fish 时,我都会收到一个关于 $PATH 条目的长错误。
set: Warning: $PATH entry "/usr/local/opt/fzf/bin:/usr/local/opt/[email protected]/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/opt/[email protected]/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS" is not valid (No such file or directory)
set: Did you mean 'set PATH $PATH /usr/local/opt/[email protected]/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/opt/[email protected]/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS'?
我能想到的唯一问题是我的计算机上没有安装 Wireshark,但我发现这不太可能,因为它曾经是,但我很久以前就卸载了它,而且这个错误在最近几天才开始出现。
有谁知道这个错误的原因以及我如何能够解决它?
我怀疑您最近升级到 fish 3.3.0,其中包含
set PATH arg:with:colons
可能打印多余错误的问题。您的命令中的目录之一set PATH
- 也许在您的config.fish
? - 不存在。这应该在 fish 3.3.1 中修复,我们希望很快就会发布。