On Tue, Aug 31, 2021 at 2:24 AM Přemysl Šťastný <p...@stty.cz> wrote:
>
> Thanks for advice. How do you use it in more detail please?

You can feed shfmt an individual file to format, it defaults to
using tabs for indentation:

  $ shfmt ~/test.sh
  #!/bin/bash

  cat <<-EOF
      hello!
  EOF

Or you can instruct your editor to run shfmt everytime you save. For example I
use Vim with the github.com/dense-analysis/ale plugin configured to run shfmt
every time I save.

Reply via email to