-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathgit.nix
More file actions
85 lines (69 loc) · 1.9 KB
/
git.nix
File metadata and controls
85 lines (69 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{ pkgs, username, ... }:
{
programs.git = {
enable = true;
settings = {
user = {
name = "Frost-Phoenix";
email = "67cyril6767@gmail.com";
};
init.defaultBranch = "main";
merge.conflictstyle = "diff3";
diff.colorMoved = "default";
pull.ff = "only";
color.ui = true;
url = {
"git@github.com:".insteadOf = [
"gh:"
"https://github.com/"
];
"git@github.com:frost-phoenix/".insteadOf = "fp:";
};
core.excludesFile = "/home/${username}/.config/git/.gitignore";
};
};
programs.delta = {
enable = true;
enableGitIntegration = false;
options = {
line-numbers = true;
side-by-side = true;
diff-so-fancy = true;
navigate = true;
};
};
home.packages = with pkgs; [
gh
serie
diffnav
];
xdg.configFile."git/.gitignore".text = ''
.vscode
'';
programs.zsh.shellAliases = {
g = "lazygit";
gf = "onefetch --number-of-file-churns 0 --no-color-palette";
gs = "git status";
gcl = "git clone";
gd = "git diff | diffnav";
ga = "git add";
gaa = "git add --all";
gc = "git commit";
gcm = "git commit -m";
gpl = "git pull";
gplo = "git pull origin";
gps = "git push";
gpso = "git push origin";
gpst = "git push --tags";
gtag = "git tag -ma";
gm = "git merge";
gb = "git branch";
gch = "git checkout";
gchb = "git checkout -b";
glg = "serie";
glog = "git log --oneline --decorate --graph";
glol = "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset'";
glola = "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --all";
glols = "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --stat";
};
}