manage gitconfig with home manager
This commit is contained in:
38
users/kopatz/.gitconfig
Normal file
38
users/kopatz/.gitconfig
Normal file
@@ -0,0 +1,38 @@
|
||||
[user]
|
||||
name = Lukas
|
||||
email = lukas.kopatz11@gmail.com
|
||||
[alias]
|
||||
pushfwl = push --force-with-lease
|
||||
last = log -1 --stat
|
||||
now = commit --amend --date="now" --no-edit
|
||||
cp = cherry-pick
|
||||
co = checkout
|
||||
cl = clone
|
||||
ci = commit
|
||||
st = status -sb
|
||||
br = branch
|
||||
unstage = reset HEAD --
|
||||
dc = diff --cached
|
||||
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
|
||||
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
|
||||
lg = !"git lg1"
|
||||
[color]
|
||||
ui = true
|
||||
[mergetool]
|
||||
keeptemporaries = false
|
||||
keepbackups = false
|
||||
prompt = false
|
||||
trustexitcode = false
|
||||
[pull]
|
||||
ff = true
|
||||
|
||||
[includeIf "gitdir/i:~/projects/github/**"]
|
||||
path = .gitconfig-github
|
||||
[includeIf "gitdir/i:~/projects/gitea/**"]
|
||||
path = .gitconfig-gitea
|
||||
[includeIf "gitdir/i:~/projects/fh/**"]
|
||||
path = .gitconfig-gitlabfh
|
||||
[includeIf "gitdir/i:~/projects/evolit/**"]
|
||||
path = .gitconfig-evolit
|
||||
[includeIf "gitdir/i:~/projects/selfhosted/**"]
|
||||
path = .gitconfig-selfhosted
|
||||
3
users/kopatz/.gitconfig-evolit
Normal file
3
users/kopatz/.gitconfig-evolit
Normal file
@@ -0,0 +1,3 @@
|
||||
[user]
|
||||
name = Lukas Kopatz
|
||||
email = lukas.kopatz@evolit.com
|
||||
18
users/kopatz/.gitconfig-gitea
Normal file
18
users/kopatz/.gitconfig-gitea
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
[push]
|
||||
default = upstream
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = false
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
symlinks = false
|
||||
ignorecase = true
|
||||
[mergetool]
|
||||
keeptemporaries = false
|
||||
keepbackups = false
|
||||
prompt = false
|
||||
trustexitcode = false
|
||||
[user]
|
||||
name = Kopatz
|
||||
email = lukas.kopatz111@gmail.com
|
||||
18
users/kopatz/.gitconfig-github
Normal file
18
users/kopatz/.gitconfig-github
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
[push]
|
||||
default = upstream
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = false
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
symlinks = false
|
||||
ignorecase = true
|
||||
[mergetool]
|
||||
keeptemporaries = false
|
||||
keepbackups = false
|
||||
prompt = false
|
||||
trustexitcode = false
|
||||
[user]
|
||||
name = Kopatz
|
||||
email = 7265381+Kropatz@users.noreply.github.com
|
||||
18
users/kopatz/.gitconfig-gitlabfh
Normal file
18
users/kopatz/.gitconfig-gitlabfh
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
[push]
|
||||
default = upstream
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = false
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
symlinks = false
|
||||
ignorecase = true
|
||||
[mergetool]
|
||||
keeptemporaries = false
|
||||
keepbackups = false
|
||||
prompt = false
|
||||
trustexitcode = false
|
||||
[user]
|
||||
name = Kopatz
|
||||
email = is221015@fhstp.ac.at
|
||||
18
users/kopatz/.gitconfig-selfhosted
Normal file
18
users/kopatz/.gitconfig-selfhosted
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
[push]
|
||||
default = upstream
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = false
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
symlinks = false
|
||||
ignorecase = true
|
||||
[mergetool]
|
||||
keeptemporaries = false
|
||||
keepbackups = false
|
||||
prompt = false
|
||||
trustexitcode = false
|
||||
[user]
|
||||
name = Kopatz
|
||||
email = lukas.kopatz111@gmail.com
|
||||
@@ -24,6 +24,6 @@
|
||||
firefox
|
||||
brave
|
||||
];
|
||||
openssh.authorizedKeys.keys = [ mainUser.sshKey ];
|
||||
openssh.authorizedKeys.keys = [ config.mainUser.sshKey ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -26,5 +26,31 @@
|
||||
inputs.nix-colors.homeManagerModule
|
||||
];
|
||||
|
||||
home.file.".gitconfig" = {
|
||||
enable = true;
|
||||
source = ./.gitconfig;
|
||||
target = ".gitconfig";
|
||||
};
|
||||
home.file.".gitconfig-gitea" = {
|
||||
enable = true;
|
||||
source = ./.gitconfig-gitea;
|
||||
target = ".gitconfig-gitea";
|
||||
};
|
||||
home.file.".gitconfig-github" = {
|
||||
enable = true;
|
||||
source = ./.gitconfig-github;
|
||||
target = ".gitconfig-github";
|
||||
};
|
||||
home.file.".gitconfig-selfhosted" = {
|
||||
enable = true;
|
||||
source = ./.gitconfig-selfhosted;
|
||||
target = ".gitconfig-selfhosted";
|
||||
};
|
||||
home.file.".gitconfig-gitlabfh" = {
|
||||
enable = true;
|
||||
source = ./.gitconfig-gitlabfh;
|
||||
target = ".gitconfig-gitlabfh";
|
||||
};
|
||||
|
||||
colorScheme = import ../../home-manager/themes/yorha/colors.nix;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user