You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.04 21:35:25