跳到主要内容

shell

代码格式化

用包管理器安装:
sudo pacman -S --noconfirm shfmt

-w 参数把格式化结果写入原文件

shfmt -w <script>

格式化当前目录所有文件

shfmt -w -l .
产品型号:
获取

赞助作者 (Sponse me):