[module/git] init

This commit is contained in:
2026-01-23 10:51:41 +08:00
parent 0b8cc95ab1
commit 0fa39523f7
5 changed files with 72 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@
../modules/llm.nix
../modules/ssh.nix
../modules/atuin.nix
../modules/git.nix
];
programs.zsh.shellAliases = {
+6
View File
@@ -0,0 +1,6 @@
{ lib, ... }:
{
programs.git.enable = true;
home.file =
(lib.origami404.standaloneToHome ".gitconfig") // (lib.origami404.standaloneToHome ".gitignore");
}
+1 -1
View File
@@ -58,7 +58,7 @@
"du" = "dust";
"df" = "duf";
"cloc" = "scc";
"cat" = "bat";
# "cat" = "bat";
"x" = "atool -x";
"cl" = "clear";
};
+59
View File
@@ -0,0 +1,59 @@
# User setting
[user]
name = Origami404
email = Origami404@foxmail.com
# Signing
[commit]
gpgsign = false
# Misc
[init]
defaultBranch = main
[core]
autocrlf = input
excludesfile = ~/.gitignore
# CLI Adjustment
[column]
ui = auto
[branch]
sort = -committerdate
[tag]
sort = version:refname
[help]
autocorrect = prompt
# Push and pull
[push]
default = simple
autoSetupRemote = true
followTags = true
[pull]
rebase = true
[fetch]
prune = true
pruneTags = true
all = true
# Diff and merge
[diff]
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
renames = true
[rebase]
autoSquash = true
autoStash = true
updateRefs = true
[rerere]
enabled = true
autoupdate = true
# Ref https://blog.gitbutler.com/how-git-core-devs-configure-git/
+5
View File
@@ -0,0 +1,5 @@
.vscode/
.local/
.DS_Store
Thumbs.db
*~