[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Squiggly heredoc - new feature request
From: |
Oğuz |
Subject: |
Re: Squiggly heredoc - new feature request |
Date: |
Tue, 31 Aug 2021 20:26:58 +0300 |
31 Ağustos 2021 Salı tarihinde Jesse Hathaway <jesse@mbuki-mvuki.org> yazdı:
> 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.
>
>
Sounds more laborious than formatting by hand.
--
Oğuz
Re: Squiggly heredoc - new feature request, felix, 2021/08/31