After the source ~/.zhrc is executed in the command line, only the cd command can be used, other ls,vim … cannot be used, and the error zsh: command not found: ls is reported. How to solve this problem?
There must be something wrong with your PATH. Please paste the relevant lines in. zshrc that configure PATH.