run prettier-plugin-sh

This commit is contained in:
Aminda Suomalainen 2024-06-06 20:38:36 +03:00
parent 9ddc0d0d42
commit 37208ccdf8
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
5 changed files with 36 additions and 35 deletions

60
.gitattributes vendored
View File

@ -1,6 +1,6 @@
# If file is text, use lf line-endings and let forges show it in repo
# languages. For more information: `man gitattributes`
* text=auto eol=lf linguist-detectable
* text=auto eol=lf linguist-detectable
# Suggestions for inevitably encountering .gitattributeless repositories when
# .gitattributes cannot be added:
@ -26,33 +26,33 @@
# TODO
# diff=matlab
# diff=pascal
*.{adb,ads} diff=ada
*.bibtex diff=bibtex
*.cs diff=csharp
*.{c,cpp} diff=cpp
*.css diff=css
*.dts diff=dts
*.{ex,exs} diff=elixir
*.{f90,f,for} diff=fortran
*.fountain diff=fountain
*.go diff=golang
*.html diff=html
*.java diff=java
*.{kt,kts} diff=kotlin
*.{h,m,mm,M} diff=objc
*.pl diff=perl
*.php diff=php
*.py diff=python
*.rb diff=ruby
*.{rs,rlib} diff=rust
*.{scm,ss} diff=scheme
*.tex diff=tex
*.{adb,ads} diff=ada
*.bibtex diff=bibtex
*.cs diff=csharp
*.{c,cpp} diff=cpp
*.css diff=css
*.dts diff=dts
*.{ex,exs} diff=elixir
*.{f90,f,for} diff=fortran
*.fountain diff=fountain
*.go diff=golang
*.html diff=html
*.java diff=java
*.{kt,kts} diff=kotlin
*.{h,m,mm,M} diff=objc
*.pl diff=perl
*.php diff=php
*.py diff=python
*.rb diff=ruby
*.{rs,rlib} diff=rust
*.{scm,ss} diff=scheme
*.tex diff=tex
# bash & co aren't often Windows, so alway have lf line-endings regarldess
# of the above. Markdown is also included as I utilise doctoc, which
# requires lf line-endings.
*.{sh,bash,zsh} diff=bash eol=lf
*.{md,markdown,[mM][dD],[mM][aA][rR][kK][dD][oO][wW][nN]} diff=markdown eol=lf
*.{md,markdown,[mM][dD],[mM][aA][rR][kK][dD][oO][wW][nN]} diff=markdown eol=lf
# While this file is like .gitignore, negative patterns are forbidden and
# directory/ wouldn't recurse, thus directory/**. Also !attribute would set
@ -65,16 +65,16 @@ Windows/** text=auto eol=crlf
# The "text" attribute is used as otherwise they rely on auto-detection of
# textness since there is no diff attribute set.
# Ref: https://rehansaeed.com/gitattributes-best-practices/#line-endings
*.{reg,[rR][eE][gG]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
*.{ahk,[aA][hH][kK]} text eol=crlf
*.{reg,[rR][eE][gG]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
*.{ahk,[aA][hH][kK]} text eol=crlf
# These files are scary, let's not touch them. The attribute "lockable" is
# provided by git-lfs. https://github.com/git-lfs/git-lfs/wiki/File-Locking
LICENSE text lockable
CITATION.cff text lockable
LICENSE text lockable
CITATION.cff text lockable
# NOTE! .gitattributes doesn't support the case-insensitive style above!
package.json text linguist-vendored
pnpm-lock.yaml text linguist-vendored
package.json text linguist-vendored
pnpm-lock.yaml text linguist-vendored

View File

@ -1 +1 @@
* @Mikaela
* @Mikaela

View File

@ -1,2 +1,2 @@
* text=auto eol=crlf
*.{md,markdown} text eol=lf
* text=auto eol=crlf
*.{md,markdown} text eol=lf

View File

@ -6,7 +6,7 @@ set -x
# I know there are old versions that used something else, but I don't remember
# that name and they are ancient.
if ! hash resolvectl 2>/dev/null; then
if ! hash resolvectl 2> /dev/null; then
echo "You don't seem to have systemd-resolved (or resolvectl) installed." 1>&2
exit 1
fi

View File

@ -52,7 +52,8 @@ inode/directory=org.gnome.Nautilus.desktop;
```bash
% grep directory /usr/share/applications/mimeinfo.cache
inode/directory=codium.desktop;org.gnome.Nautilus.desktop;
inode/directory=codium.desktop
org.gnome.Nautilus.desktop
```
TODO: I wonder if it needs an `update-desktop-database` or similar though.