diff --git a/modules/pre-commit.nix b/modules/pre-commit.nix index bbc92cb4..308bbb28 100644 --- a/modules/pre-commit.nix +++ b/modules/pre-commit.nix @@ -329,7 +329,7 @@ in installationScript = '' - export PATH=$PATH:${cfg.package}/bin + export PATH=${cfg.package}/bin:$PATH if ! type -t git >/dev/null; then # This happens in pure shells, including lorri echo 1>&2 "WARNING: pre-commit-hooks.nix: git command not found; skipping installation."