格式化shell脚本

Aj*_*ngh 1 bash shell

我有1000行shell脚本和所有kepywords

if/else,while,HERE文件

任何人都可以告诉格式化脚本的最佳方法,因此脚本看起来很好.

我在vim中尝试VG =但也取代了HERE文档内容.

Dan*_*Lin 6

检查这个https://github.com/mvdan/sh,这是带有两个空格的缩进的示例命令

shfmt -i 2 -w yourscript