diff --git a/.hooks/pre-commit b/.hooks/pre-commit
index 4d465c4..524d4e5 100755
--- a/.hooks/pre-commit
+++ b/.hooks/pre-commit
@@ -2,13 +2,14 @@
 
 git stash -q --keep-index
 
-
+echo "checking flakes all compile"
 nix flake check
 
-if [ $? -eq 0 ]; then
+if [ ! $? -eq 0 ]; then
     exit 1
 fi
 
+echo "running linter"
 ./lint.sh
 
 RESULT=$?
diff --git a/README.md b/README.md
index 4f1e59b..f639b53 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@
 - This person seams to know what they are doing with home manager https://github.com/arvigeus/nixos-config/
 
 ## Configuration
-set up git configuration for local development: `git config --local include.path .gitconfig`
+set up git configuration for local development: `git config core.hooksPath .hooks`
 
 to update passwords run: `nix shell nixpkgs#sops -c sops secrets/user-passwords.yaml` (NOTE: this depends on the SOPS_AGE_KEY_DIRECTORY environment variable being set)