Vscode Integrated Terminal(Fish)的PWD命令始终返回“/”



我正在使用与/usr/local/bin/fish的VSCODE集成终端。

"terminal.integrated.shell.osx": "/usr/local/bin/fish",

在VSCODE的集成终端中,pwd命令总是返回"/",无论我打开的目录是什么。

pwd
# => /
echo $PWD
# => /

如何使用打开的目录的路径更改PWD?

这是鱼3.0.1的错误:https://github.com/fish-shell/fish-shell/fish-shell/issues/5647。

解决方案是升级到鱼3.0.2。

最新更新