idea下编写shell脚本并执行

1.前提是安装了git,目的是能够在windows下执行shell脚本

2.在idea的plugins中找到插件bashsupport并安装,然后重启idea

3.然后新建一个shell文件:shell.sh

4.右键运行,会报错,因为没有找到执行shell的程序。然后在到下面这里指定解释器:

5.然后执行

完美,不过好像不能调试。

原文地址:https://www.cnblogs.com/cnsec/p/13286650.html