Merge pull request #265532 from ProminentRetail/git

This commit is contained in:
Maciej Krüger
2023-11-24 22:38:57 +01:00
committed by GitHub
+9
View File
@@ -58,6 +58,10 @@ in
'';
};
prompt = {
enable = mkEnableOption "automatically sourcing git-prompt.sh. This does not change $PS1; it simply provides relevant utility functions";
};
lfs = {
enable = mkEnableOption (lib.mdDoc "git-lfs");
@@ -89,6 +93,11 @@ in
};
};
})
(mkIf (cfg.enable && cfg.prompt.enable) {
environment.interactiveShellInit = ''
source ${cfg.package}/share/bash-completion/completions/git-prompt.sh
'';
})
];
meta.maintainers = with maintainers; [ figsoda ];