Hooks don't work on windows

Resolved 💬 3 comments Opened Jul 12, 2025 by Reekin Closed Jul 14, 2025

I'm really glad cc finally supports windows. But the hooks I used in wsl don't work in windows now.
In wsl settings, the command was ~/bin/xxx.sh. I changed it into C:\Users\UserName\bin\xxx.sh and put the sh to the path, getting the error: failed with non-blocking status code 127: bash: C:UsersUserNamebinxxx.sh: No such file or directory.
I've tried /mnt/c/Users/UserName/bin/xxx.sh,/c/Users/UserName/bin/xxx.sh, C:/Users/UserName/bin/xxx.sh and some other possible styles, there's no errors but the sh was not executed. So how should I write the command?

And how should I install the required packages like jq? Just put them in C:\Program Files\Git\bin? (I tried this and let claude code run it, but still got jq: command not found)

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗