bash - 如何在 VSC MacOS 上配置 Git Bash
问题描述
如何将Git Bash
终端添加到 MacOS 中的 Visual Studio Code?
我看不到该"Configure Default Shell"
选项。
解决方案
Git bash 是一个移植 bash 以及一些在 Windows 上使用的命令行工具的程序。Bash 目前是 mac 上的默认 shell,因此您无需以任何方式安装它。如果缺少 Git Bash 附带的某些工具,您可以install <tool> on mac
在 Google 中搜索并找到指南。
如果您不想在 VSCode 中使用与您机器上的标准相同的 shell,您可以通过添加"terminal.integrated.shell.osx": "<shell>",
到您的 settings.json 来指定它(可以通过单击“{}
设置”中的右上角的图标来找到)。<shell>
可以是其中之一运行时显示的指定 shell cat /etc/shells
。
推荐阅读
- python - 在txt python中的列中写入行
- json - 在 Flutter 中使用 id 作为参数从 RestAPI 获取单个项目
- python - 按照字典中的说明操作 numpy 数组
- mysql - SQL查询的区别
- reactjs - 如何在 Tomcat 中部署 React 应用程序?
- android - Android Emulator 自定义硬件配置文件的应用程序大小不正确
- angular - 在角度中找不到模块文件保护程序
- xcode - 没有为“ProduceIncludeFrameworksCommand”任务提供所需参数“XcodePath”的值
- php - phpmyadmin/sql-parser 到 AST
- windows - 本地计算机上的 Windows 服务启动然后停止时间范围