gitconfig: add some extra rules

Summary:
From https://github.com/simnalamburt/.dotfiles/blob/main/.gitconfig

Apache-2.0 license used.

Also:

 - fix `npm run` command
 - fix incorrect `.gitconfig` rule.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Not really as well.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D225
This commit is contained in:
revi 2024-06-09 21:06:43 +09:00
parent b0ae699487
commit 5e2a2c7516
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94
2 changed files with 11 additions and 2 deletions

View file

@ -4,6 +4,11 @@
name = Yongmin Hong name = Yongmin Hong
email = revi@omglol.email email = revi@omglol.email
signingkey = EA100E94 signingkey = EA100E94
# Don't alphabetize [user] section.
[branch]
sort = committerdate
[color]
ui = auto
[commit] [commit]
gpgSign = true gpgSign = true
[core] [core]
@ -21,12 +26,16 @@
smudge = git-lfs smudge -- %f smudge = git-lfs smudge -- %f
process = git-lfs filter-process process = git-lfs filter-process
required = true required = true
[format]
pretty = fuller
[gitreview] [gitreview]
username = revi username = revi
[include] [include]
path = ~/.gitaliases path = ~/.gitaliases
[init] [init]
defaultBranch = master defaultBranch = master
[log]
date = iso8601
[pretty] [pretty]
show = fuller show = fuller
[rerere] [rerere]

View file

@ -6,7 +6,7 @@
"prettier": "^3.3.1" "prettier": "^3.3.1"
}, },
"scripts": { "scripts": {
"pcheck": "prettier --check .", "p:c": "prettier --check",
"pwrite": "prettier --write ." "p:w": "prettier --write"
} }
} }