2022-11-22 05:28:41 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
lib.mkIf config.sane.home-manager.enable
|
2022-10-21 15:41:28 +00:00
|
|
|
{
|
|
|
|
home-manager.users.colin.programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "colin";
|
|
|
|
userEmail = "colin@uninsane.org";
|
|
|
|
|
|
|
|
aliases = { co = "checkout"; };
|
|
|
|
extraConfig = {
|
|
|
|
# difftastic docs:
|
|
|
|
# - <https://difftastic.wilfred.me.uk/git.html>
|
|
|
|
diff.tool = "difftastic";
|
|
|
|
difftool.prompt = false;
|
|
|
|
"difftool \"difftastic\"".cmd = ''${pkgs.difftastic}/bin/difft "$LOCAL" "$REMOTE"'';
|
|
|
|
# now run `git difftool` to use difftastic git
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|