[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Squiggly heredoc - new feature request
From: |
Jesse Hathaway |
Subject: |
Re: Squiggly heredoc - new feature request |
Date: |
Tue, 31 Aug 2021 11:03:57 -0500 |
On Tue, Aug 31, 2021 at 2:24 AM Přemysl Šťastný <p-w@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.
Re: Squiggly heredoc - new feature request, felix, 2021/08/31