mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
run prettier-plugin-sh
This commit is contained in:
parent
9ddc0d0d42
commit
37208ccdf8
60
.gitattributes
vendored
60
.gitattributes
vendored
@ -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
|
||||
|
@ -1 +1 @@
|
||||
* @Mikaela
|
||||
* @Mikaela
|
||||
|
4
Windows/.gitattributes
vendored
4
Windows/.gitattributes
vendored
@ -1,2 +1,2 @@
|
||||
* text=auto eol=crlf
|
||||
*.{md,markdown} text eol=lf
|
||||
* text=auto eol=crlf
|
||||
*.{md,markdown} text eol=lf
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user