Loading

windows terminal 添加git bash

  1. 打开windows terminal
  2. 点击设置
    ![在这里插入图片描述]( https://img-blog.csdnimg.cn/20210119143137613.png?x-oss-process=image/watermark ,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxNzU0NzcyNjYx,size_16,color_FFFFFF,t_70)
  3. 修改文件
    ![在这里插入图片描述]( https://img-blog.csdnimg.cn/20210119143240520.png?x-oss-process=image/watermark ,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxNzU0NzcyNjYx,size_16,color_FFFFFF,t_70)

找到profiles-->list
添加一个节点

{
  "commandline" : "C:\\Program Files\\Git\\bin\\bash.exe"                ,
  "guid" : "{f263b0f3-4e4d-d630-298c-605384d8fa48}",
  "icon" : "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico",
  "name" : "Git Bash"
}

其中commandline 是git安装目录下的bin目录下的bash.exe(不是git安装目录下的git-bash.exe)
guid自己去网上搜一个在线生成器生成一个
icon就是git目录下的,自己也可以换一个图标
name就是终端里显示的那个

保存之后就ok了

posted @ 2021-03-27 07:53  克豪  阅读(656)  评论(0)    收藏  举报