feat(home/git.nix): enable Git LFS and add aliases
- Enabled Git Large File Storage (LFS) - Added `ai` alias to generate diff with AI chat
This commit is contained in:
parent
72167fd861
commit
58e2b8dab7
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
{ pkgs, ... }: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Giulio De Pasquale";
|
||||
@ -12,6 +12,10 @@
|
||||
};
|
||||
};
|
||||
delta.enable = true;
|
||||
lfs.enable = true;
|
||||
aliases = {
|
||||
ai = ''! cd -- "''${GIT_PREFIX:-.}" && git diff HEAD -- "$@" | aichat -m ollama:pino-coder -r commitmessage #'';
|
||||
};
|
||||
};
|
||||
home.packages = [ pkgs.git-lfs ];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user