BSD Ports

devel/shfmt 3.11.0 DragonFly

Shell script formatter

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD3CLAUSE
Categories
devel
Package size
969.7 KiB, 2758.6 KiB installed

Description

shfmt formats shell programs. It can use tabs or any number of spaces to indent.

You can feed it standard input, any number of files or any number of directories to recurse into. When recursing, it will operate on .sh and .bash files and ignore files starting with a period. It will also operate on files with no extension and a shell shebang.

If any EditorConfig files are found, they will be used to apply formatting options.

In the other systems

SystemPortVersion
DragonFlydevel/shfmt3.11.0
FreeBSDdevel/shfmt3.14.1_2
OpenBSDdevel/shfmt3.6.0
NetBSDdevel/shfmt3.14.1
HardenedBSDdevel/shfmt3.14.1
GhostBSDdevel/shfmt3.14.1

Install

Binary package:

pkg install shfmt

From DPorts:

cd /usr/dports/devel/shfmt && make install clean

Dependencies

No port depends on this one.