53 lines
1.4 KiB
Nix
53 lines
1.4 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
home.packages = with pkgs; [
|
|
git
|
|
gh
|
|
hub
|
|
];
|
|
|
|
#programs.git.gitui.enable = true;
|
|
programs.git.enable = true;
|
|
programs.git.delta.enable = true;
|
|
#programs.git.lfs.enable = true;
|
|
#programs.git.signing
|
|
#programs.git.userName = "pbsds"
|
|
programs.git.userName = "Peder Bergebakken Sundt";
|
|
programs.git.userEmail = "pbsds@hotmail.com";
|
|
programs.git.ignores = [
|
|
"result"
|
|
"result-info"
|
|
"result-doc"
|
|
"result-man"
|
|
"result-dev"
|
|
"result-lib"
|
|
"__pycache__"
|
|
"*.pyc"
|
|
];
|
|
programs.git.iniContent.init.defaultBranch = "main";
|
|
|
|
home.shellAliases = {
|
|
# git gud
|
|
gs = "git status";
|
|
gb = "git blame";
|
|
gl = "git log --oneline --color | head -n 30";
|
|
glg = "git log --all --decorate --oneline --graph";
|
|
gpra = "git pull --rebase --autostash";
|
|
gd = "git diff";
|
|
gdwd = "git diff --word-diff";
|
|
gdwdr = "git diff --word-diff --word-diff-regex=.";
|
|
gds = "git diff --staged";
|
|
gdswd = "git diff --staged --word-diff";
|
|
gdswdr = "git diff --staged --word-diff --word-diff-regex=.";
|
|
gcp = "git cherry-pick";
|
|
gca = "git commit --amend";
|
|
gcara = "git commit --amend --reset-author";
|
|
gpo = "git push origin";
|
|
gpasr = "git pull --autostash --rebase";
|
|
#gfr = "git fetch origin master && git rebase FETCH_HEAD";
|
|
gfr = "git pull --rebase";
|
|
gp = "git pull --rebase --autostash";
|
|
};
|
|
|
|
}
|