zsh: command not found: pre-commit but package installed

13.7k views Asked by At

Installed pre-commit successfully using the following command in VSCode:

python3 -m pip install pre-commit --user

but when I try to do the pre-commit install, I get the error message:

zsh: command not found: pre-commit
1

There are 1 answers

0
Steve Matos On

Try adding this command to your .zshrc so that it recognizes your .bashrc commands, something similar to yours was happening to me.

[[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile'

for more information: How can you export your .bashrc to .zshrc?