diff options
author | Minijackson <minijackson@riseup.net> | 2023-09-13 09:47:07 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2023-09-13 09:47:07 +0200 |
commit | e2abc27ccab5d15e5a21a49f77a563334df9706a (patch) | |
tree | 4914ebd7138c99671c753cc5d846bdc24a269bb8 /common/commandline | |
parent | 74960fd2025619fef31e4144013c36666d65ec74 (diff) | |
download | nixos-config-reborn-e2abc27ccab5d15e5a21a49f77a563334df9706a.tar.gz nixos-config-reborn-e2abc27ccab5d15e5a21a49f77a563334df9706a.zip |
common/git: setup watchman fsmonitor, add gitoxide
Diffstat (limited to 'common/commandline')
-rw-r--r-- | common/commandline/git.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/commandline/git.nix b/common/commandline/git.nix index 8ce89b6..e376fa6 100644 --- a/common/commandline/git.nix +++ b/common/commandline/git.nix | |||
@@ -4,7 +4,7 @@ inputs: | |||
4 | 4 | ||
5 | { | 5 | { |
6 | environment = { | 6 | environment = { |
7 | systemPackages = [pkgs.git-branchless]; | 7 | systemPackages = with pkgs; [unstable.git-branchless gitoxide watchman]; |
8 | shellAliases.git = "git-branchless wrap --"; | 8 | shellAliases.git = "git-branchless wrap --"; |
9 | }; | 9 | }; |
10 | 10 | ||
@@ -36,7 +36,10 @@ inputs: | |||
36 | pager = deltaCommand; | 36 | pager = deltaCommand; |
37 | interactive.diffFilter = "${deltaCommand} --color-only"; | 37 | interactive.diffFilter = "${deltaCommand} --color-only"; |
38 | untrackedCache = true; | 38 | untrackedCache = true; |
39 | fsmonitor = true; | 39 | # Use same package as above |
40 | # Also, the fact that gitFull depends on Perl | ||
41 | # means that the shebang was fixed | ||
42 | fsmonitor = "${pkgs.gitAndTools.gitFull}/share/git-core/templates/hooks/fsmonitor-watchman.sample"; | ||
40 | }; | 43 | }; |
41 | 44 | ||
42 | diff = { | 45 | diff = { |