mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
feat(git): add fixup alias
This commit is contained in:
parent
11255f51e4
commit
753f94f4ff
1 changed files with 9 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, lib, ...}: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git
|
git
|
||||||
gh
|
gh
|
||||||
|
|
@ -7,18 +7,26 @@
|
||||||
|
|
||||||
fireproof.home-manager.programs.git = {
|
fireproof.home-manager.programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
userEmail = "nickolaj@fireproof.website";
|
userEmail = "nickolaj@fireproof.website";
|
||||||
userName = "Nickolaj Jepsen";
|
userName = "Nickolaj Jepsen";
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
gpg.format = "ssh";
|
gpg.format = "ssh";
|
||||||
gpg.ssh.program = "op-ssh-sign";
|
gpg.ssh.program = "op-ssh-sign";
|
||||||
push.autosetupremote = "true";
|
push.autosetupremote = "true";
|
||||||
pull.rebase = "true";
|
pull.rebase = "true";
|
||||||
|
rebase.autosqush = "true";
|
||||||
rerere.enabled = true;
|
rerere.enabled = true;
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
};
|
};
|
||||||
|
|
||||||
delta.enable = true;
|
delta.enable = true;
|
||||||
|
|
||||||
|
aliases = {
|
||||||
|
"fixup" = "!git log -n 50 --pretty=format:'%h %s' --no-merges | ${lib.getExe pkgs.fzf} | cut -c -7 | xargs -o git commit --fixup";
|
||||||
|
};
|
||||||
|
|
||||||
includes = [
|
includes = [
|
||||||
{
|
{
|
||||||
condition = "hasconfig:remote.*.url:git@github.com:Digital-Udvikling/**";
|
condition = "hasconfig:remote.*.url:git@github.com:Digital-Udvikling/**";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue