We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e933db5 commit 6822fc7Copy full SHA for 6822fc7
docs/user-guide/modules/ROOT/pages/scripts/general/shellscript-format.adoc
@@ -13,6 +13,24 @@ $ scripts/general/shellscript_format.sh
13
$ scripts/general/shellscript_format.sh /tmp/example
14
----
15
16
+[TIP]
17
+====
18
+Instead of this script you might want to add a shell alias:
19
+
20
+[,shell]
21
+----
22
+alias shfmtg='shfmt --write --indent 2 --case-indent --binary-next-line --simplify'
23
24
25
+⇓
26
27
+[,console]
28
29
+$ shfmtg .
30
+$ shfmtg /tmp/example
31
32
33
34
== Prerequisites
35
36
* xref:developer-guide::dev-environment/dev-installation.adoc#shfmt[shfmt]
0 commit comments