Compare commits

..

No commits in common. "d36855881277396117cf1576e295d7cc53efd36f" and "5ac2ad0f6116d04c5350685da811fa8399c33cbb" have entirely different histories.

7 changed files with 71 additions and 36 deletions

90
.gitattributes vendored
View File

@ -1,42 +1,80 @@
# 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
# doctoc doesn't support other line endings
*.md diff=markdown eol=lf
*.markdown diff=markdown eol=lf
# Set for not-normalized/unmergeable diffable # Suggestions for inevitably encountering .gitattributeless repositories when
# files # .gitattributes cannot be added:
# git config --global core.autocrlf input
# - `* text=auto` when there is no `.gitattributes`. In other words,
# commit eol=lf, check-out as it is.
# git config --global core.safecrlf warn
# - Warn if EOL change is irreversible.
# git config --global merge.renormalize true
# - Avoid merge-conflict when merging from .gitattributeless branch to
# .gitattributed branch
# This is the default "binary" macro attribute, but with diffing allowed.
# Use when file contains diffable text, but isn't actually plaintext and thus
# shouldn't have EOL conversion done.
[attr]binaryd diff -merge -text [attr]binaryd diff -merge -text
# Example:
#*.db binaryd
# Windows # Built-in diff patterns (disabled by default). The attribute `diff` implies
*.reg text eol=crlf # `text` and the above attributes are inherited.
*.bat text eol=crlf # https://www.git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header
*.ahk text eol=crlf # TODO
# diff=matlab
# Files I want to exclude from language detection # diff=pascal
package.json text linguist-vendored *.{adb,ads} diff=ada
pnpm-lock.yaml text linguist-vendored
# `man gitattributes`, "Defining a custom hunk-header"
# mainly here for being template
*.bibtex diff=bibtex *.bibtex diff=bibtex
*.cs diff=csharp *.cs diff=csharp
*.c diff=cpp *.{c,cpp} diff=cpp
*.cpp diff=cpp
*.css diff=css *.css diff=css
*.dts diff=dts *.dts diff=dts
*.ex diff=elixir *.{ex,exs} diff=elixir
*.exs diff=elixir *.{f90,f,for} diff=fortran
*.fountain diff=fountain
*.go diff=golang *.go diff=golang
*.html diff=html *.html diff=html
*.java diff=java *.java diff=java
*.kt diff=kotlin *.{kt,kts} diff=kotlin
*.kts diff=kotlin *.{h,m,mm,M} diff=objc
*.pl diff=perl *.pl diff=perl
*.php diff=php *.php diff=php
*.py diff=python *.py diff=python
*.rb diff=ruby *.rb diff=ruby
*.rs diff=rust *.{rs,rlib} diff=rust
*.rlib diff=rust *.{scm,ss} diff=scheme
*.scm diff=scheme
*.ss diff=scheme
*.tex diff=tex *.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
# While this file is like .gitignore, negative patterns are forbidden and
# directory/ wouldn't recurse, thus directory/**. Also !attribute would set
# it back to unset.
# In this case Windows/** may also contain binary files, thus auto-detection
# is repeated and eol=crlf as it's unlikely to be of use outside of Windows.
Windows/** text=auto eol=crlf
# Similarly these files are unlikely to be encountered outside of Windows.
# 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
# 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
# NOTE! .gitattributes doesn't support the case-insensitive style above!
package.json text linguist-vendored
pnpm-lock.yaml text linguist-vendored

View File

@ -1,8 +1,7 @@
{ {
"extends": [ "extends": [
"config:recommended", "config:recommended",
"group:allDigest", "group:allDigest"
"group:recommended"
], ],
"git-submodules": { "git-submodules": {
"enabled": true "enabled": true

2
rc/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
prettierrc
prettierrc.json

View File

@ -444,11 +444,8 @@ alias less="less -R "
# "su -" with/without sudo. Conflicts with SailfishOS, to learn to use sui # "su -" with/without sudo. Conflicts with SailfishOS, to learn to use sui
# instead. # instead.
if ! hash ssu 2> /dev/null; then alias ssu="sudo -i"
alias ssu="echo 'No.'"
fi
alias sui="sudo -i" alias sui="sudo -i"
alias sudoi="sudo -i"
#alias suu="su -" #alias suu="su -"
# systemd runlevels/targets # systemd runlevels/targets

1
rc/prettierrc Symbolic link
View File

@ -0,0 +1 @@
../.prettierrc.json

1
rc/prettierrc.json Symbolic link
View File

@ -0,0 +1 @@
../.prettierrc.json

View File

@ -437,11 +437,8 @@ alias less="less -R "
# "su -" with/without sudo. Conflicts with SailfishOS, to learn to use sui # "su -" with/without sudo. Conflicts with SailfishOS, to learn to use sui
# instead. # instead.
if ! hash ssu 2> /dev/null; then alias ssu="sudo -i"
alias ssu="echo 'No.'"
fi
alias sui="sudo -i" alias sui="sudo -i"
alias sudoi="sudo -i"
#alias suu="su -" #alias suu="su -"
# Who command which I use with Conky # Who command which I use with Conky