From 0c8c5c5f2a48da892964f90e9519a91cab9378f9 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sun, 29 Dec 2024 15:34:06 -0500 Subject: [PATCH] added git aliases --- home/git.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/home/git.nix b/home/git.nix index 532edb6..fdaaebc 100644 --- a/home/git.nix +++ b/home/git.nix @@ -3,10 +3,6 @@ userEmail, ... }: { - # `programs.git` will generate the config file: ~/.config/git/config - # to make git use this config file, `~/.gitconfig` should not exist! - # - # https://git-scm.com/docs/git-config#Documentation/git-config.txt---global home.activation.removeExistingGitconfig = lib.hm.dag.entryBefore ["checkLinkTargets"] '' rm -f ~/.gitconfig ''; @@ -30,6 +26,8 @@ aliases = { # common aliases + a = "add"; + ap = "add -p"; br = "branch"; co = "checkout"; st = "status -sb";