mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
+ mr
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
# };
|
# };
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
|
pkgs.mr
|
||||||
pkgs.git
|
pkgs.git
|
||||||
pkgs.gitAndTools.hub
|
pkgs.gitAndTools.hub
|
||||||
pkgs.gitAndTools.git-extras
|
pkgs.gitAndTools.git-extras
|
||||||
@@ -22,24 +23,67 @@
|
|||||||
pkgs.git-quick-stats
|
pkgs.git-quick-stats
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.me.programs.git = {
|
home-manager.users.me = {
|
||||||
enable = true;
|
home.file.".mrconfig".text = ''
|
||||||
package = pkgs.gitAndTools.gitFull;
|
[DEFAULT]
|
||||||
userName = config.niveum.user.name;
|
git_gc = git gc "$@"
|
||||||
userEmail = config.niveum.user.email;
|
|
||||||
aliases = {
|
[prog/git/blog]
|
||||||
br = "branch";
|
checkout = git clone 'git@github.com:kmein/blog' 'blog'
|
||||||
co = "checkout";
|
|
||||||
ci = "commit";
|
[prog/git/brockman]
|
||||||
cm = "commit -m";
|
checkout = git clone 'git@github.com:kmein/brockman.git' 'brockman'
|
||||||
amend = "commit --amend";
|
|
||||||
st = "status";
|
[prog/git/menstruation.rs]
|
||||||
unstage = "reset HEAD --";
|
checkout = git clone 'git@github.com:kmein/menstruation.rs.git' 'menstruation.rs'
|
||||||
diffs = "diff --staged";
|
|
||||||
last = "log -1 HEAD";
|
[prog/git/menstruation-telegram]
|
||||||
logs = "log --pretty=oneline";
|
checkout = git clone 'git@github.com:kmein/menstruation-telegram' 'menstruation-telegram'
|
||||||
graph = "log --graph --abbrev-commit --decorate --date=relative --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";
|
|
||||||
|
[prog/git/meteora]
|
||||||
|
checkout = git clone 'git@github.com:kmein/meteora.git' 'meteora'
|
||||||
|
|
||||||
|
[prog/git/niveum]
|
||||||
|
checkout = git clone 'git@github.com:kmein/niveum' 'niveum'
|
||||||
|
|
||||||
|
[prog/git/poetry]
|
||||||
|
checkout = git clone 'git@github.com:kmein/poetry' 'poetry'
|
||||||
|
|
||||||
|
[prog/git/quote-db]
|
||||||
|
checkout = git clone 'git@github.com:kmein/quote-db' 'quote-db'
|
||||||
|
|
||||||
|
[prog/git/quotes]
|
||||||
|
checkout = git clone 'git@github.com:kmein/quotes' 'quotes'
|
||||||
|
|
||||||
|
[prog/git/telebots]
|
||||||
|
checkout = git clone 'git@github.com:kmein/telebots' 'telebots'
|
||||||
|
|
||||||
|
[prog/git/traadfri]
|
||||||
|
checkout = git clone 'git@github.com:kmein/traadfri' 'traadfri'
|
||||||
|
|
||||||
|
[prog/git/zen]
|
||||||
|
checkout = git clone 'git@github.com:kmein/zen.git' 'zen'
|
||||||
|
'';
|
||||||
|
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.gitAndTools.gitFull;
|
||||||
|
userName = config.niveum.user.name;
|
||||||
|
userEmail = config.niveum.user.email;
|
||||||
|
aliases = {
|
||||||
|
br = "branch";
|
||||||
|
co = "checkout";
|
||||||
|
ci = "commit";
|
||||||
|
cm = "commit -m";
|
||||||
|
amend = "commit --amend";
|
||||||
|
st = "status";
|
||||||
|
unstage = "reset HEAD --";
|
||||||
|
diffs = "diff --staged";
|
||||||
|
last = "log -1 HEAD";
|
||||||
|
logs = "log --pretty=oneline";
|
||||||
|
graph = "log --graph --abbrev-commit --decorate --date=relative --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";
|
||||||
|
};
|
||||||
|
ignores = config.niveum.ignore;
|
||||||
};
|
};
|
||||||
ignores = config.niveum.ignore;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user