Files
nixos-config/home/common/programs/git.nix
T
Miguel Palhas 87ff93fb31 code review
2024-10-05 10:30:59 +01:00

36 lines
1008 B
Nix

{ pkgs, ... }: {
programs.git = {
enable = true;
userName = "Miguel Palhas";
userEmail = "mpalhas@gmail.com";
aliases = {
ls =
"log --color --graph --oneline --decorate --topo-order --pretty=format:'%C(yellow)%d%Creset %Cgreen(%cr)%Creset %C(bold blue)[%an]%Creset %s %Cred(%h)%Creset' --abbrev-commit";
ll = ''
log --reverse --pretty=format:"%C(yellow)%h%Cred%d\ %Creset%s%Cblue\ [%an]" --decorate --numstat'';
conf = "diff --name-only --diff-filter=U";
br = "branch";
ba = "branch -a";
br = "checkout -b";
pb = "publish";
ps = "push -u";
pr = "pull-request";
ppr = "push-pr";
cpr = "close-pr";
opr = "open-pr";
pb = "publish";
f = "fetch";
c = "commit --verbose";
d = "diff";
dc = "diff --cached";
co = "checkout";
s = "status -sb";
b = "better-branch";
rb = "rebase";
rbc = "rebase --continue";
};
};
programs.gh.enable = true;
}