Unverified Commit 2819a35b authored by Maciej Krüger's avatar Maciej Krüger Committed by GitHub
Browse files

Merge pull request #265532 from ProminentRetail/git

parents 61c5728e 2db2f446
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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 ];