Closed javydekoning closed 7 months ago
From man shfmt
:
If any EditorConfig files are found, they will be used to apply formatting options. If any parser or printer flags are given to the tool, no EditorConfig files will be used. A default like -i=0 can be used for this purpose.
So your solution is to either add space_redirects = true
to the EditorConfig file, or to repeat all of your EditorConfig formatting options as flags in the command line.
Yikes, that was easy. Thanks!
Added:
[*.sh]
space_redirects = true
To my editorconf and it's fixed
This causes conflicts with my editorconf (where I use 2 spaces for indents).
Running with
-sr
: