From a2b42917f2659fad1cae34fa45cabc74cd53ad8f Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Mon, 20 Nov 2023 08:54:29 +0100 Subject: [PATCH] add git setup to config in light of significant inconsistencies in the git setups of almost all of my devices, this is something that urgently should be fixed. --- modules/default.nix | 1 + modules/git.nix | 17 +++++++++++++++++ other/config.nu | 8 +++++++- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 modules/git.nix diff --git a/modules/default.nix b/modules/default.nix index 068d43c..b001950 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -6,5 +6,6 @@ ./terminal.nix ./flatpak.nix ./firewall.nix + ./git.nix ]; } diff --git a/modules/git.nix b/modules/git.nix new file mode 100644 index 0000000..a63f68b --- /dev/null +++ b/modules/git.nix @@ -0,0 +1,17 @@ +{ ... }: { + home-manager.users.jade = { pkgs, ... }: { + programs.git = { + enable = true; + userName = "Schrottkatze"; + userEmail = "git@schrottkatze.de"; + aliases = { + a = "add"; + c = "commit"; + ca = "commit --all"; + p = "push"; + pl = "pull"; + s = "status"; + }; + }; + }; +} diff --git a/other/config.nu b/other/config.nu index 37903ac..2f37444 100644 --- a/other/config.nu +++ b/other/config.nu @@ -796,4 +796,10 @@ def lcr [ alias gnix = cd ~/nix-configs; alias grepo = cd ~/Documents/repos; alias wh = wormhole-rs; -alias gst = git status; + +alias ga = git add; +alias gc = git commit; +alias gca = git commit --all; +alias gp = git push; +alias gpl = git pull; +alias gs = git status;