[module/git] init
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
../modules/llm.nix
|
../modules/llm.nix
|
||||||
../modules/ssh.nix
|
../modules/ssh.nix
|
||||||
../modules/atuin.nix
|
../modules/atuin.nix
|
||||||
|
../modules/git.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.zsh.shellAliases = {
|
programs.zsh.shellAliases = {
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
programs.git.enable = true;
|
||||||
|
home.file =
|
||||||
|
(lib.origami404.standaloneToHome ".gitconfig") // (lib.origami404.standaloneToHome ".gitignore");
|
||||||
|
}
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
"du" = "dust";
|
"du" = "dust";
|
||||||
"df" = "duf";
|
"df" = "duf";
|
||||||
"cloc" = "scc";
|
"cloc" = "scc";
|
||||||
"cat" = "bat";
|
# "cat" = "bat";
|
||||||
"x" = "atool -x";
|
"x" = "atool -x";
|
||||||
"cl" = "clear";
|
"cl" = "clear";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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/
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
.vscode/
|
||||||
|
.local/
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
*~
|
||||||
Reference in New Issue
Block a user