IDEA中通过安装BashSupport,编写脚本并运行shell脚本

安装BashSupport

通过Browse reposities安装

Settings->Plugins->Browse reposities

搜索BashSupport,点击安装

IDEA中通过安装BashSupport,编写脚本并运行shell脚本

通过本地文件安装

https://plugins.jetbrains.com/plugin/4230-bashsupport/versions 下载最新bashsupport

Setting->Plugins->Install plugins form disk

IDEA中通过安装BashSupport,编写脚本并运行shell脚本

选择你刚刚下载的zip文件即可。

 

BashSupport使用

新建

在任意目录下,右键->New->Bash Script

IDEA中通过安装BashSupport,编写脚本并运行shell脚本

运行

配置启动项,在Interpreter path中选择git的安装目录,如下图所示(需要本机已安装git)

IDEA中通过安装BashSupport,编写脚本并运行shell脚本

ps:查看windows机器git的安装目录,在cmd中 where git即可