MacOS Ventura 13.1下VSCode集成bash终端不显示路径如何解决
VSCode集成bash终端不显示路径问题
- 症状:VSCode内置bash终端无法显示当前路径,但
cd切换目录、ls查看文件等命令可正常执行 - 背景:近期安装了Fig终端自动补全工具,外部终端(非VSCode集成)运行正常,路径显示无异常
- 补充:终端仅显示光标,无路径提示符
当前VSCode的settings.json配置
"terminal.integrated.defaultProfile.osx": "bash", "terminal.integrated.profiles.osx": { "bash": { "path": "bash", "args": ["-l"], "icon": "terminal-bash" }, "zsh": { "path": "zsh", "args": ["-l"] }, "fish": { "path": "fish", "args": ["-l"] }, "tmux": { "path": "tmux", "icon": "terminal-tmux" }, "pwsh": { "path": "pwsh", "icon": "terminal-powershell" } }, "vsicons.dontShowNewVersionMessage": true, "window.zoomLevel": 1, "workbench.colorTheme": "Light Pink", "workbench.iconTheme": "vscode-icons", "terminal.integrated.env.osx": { "FIG_NEW_SESSION": "1" }, "settingsSync.ignoredSettings": []
已尝试的无效操作
添加以下配置并重启VSCode,终端问题无任何改善:
"terminal.integrated.profiles.osx": { "bash": { "path": "bash", "args": ["-l"], "icon": "terminal-bash" }, "zsh": { "path": "zsh", "args": ["-l"] }, "fish": { "path": "fish", "args": ["-l"] }, "tmux": { "path": "tmux", "icon": "terminal-tmux" }, "pwsh": { "path": "pwsh", "icon": "terminal-powershell" } },
内容的提问来源于stack exchange,提问作者hey
相关产品推荐
相关产品推荐

