一、准备工作
在windows下运行shell有很多方法,CygWin感觉太笨重了,推荐两个工具:
http://unxutils.sourceforge.net/
http://win-bash.sourceforge.net/
这里使用unxutils,下载地址(亲测有效)
https://sourceforge.net/projects/unxutils/
参考 1
eclipse下搭建shell脚本编辑器–安装开发shell的eclipse插件shelled
https://blog.csdn.net/beagreatprogrammer/article/details/39964523
二、eclipse
1.安装shell插件
从Eclipse Marketplace中安装Shell Script插件
2.配置sh.exe
3.测试运行shell脚本
如果run没有执行程序,在Run Configurations添加对应的配置即可
三、idea配置
使用idea2018
1.shell插件
idea中已经安装了shell插件