When I use a terminal or zsh I can't run commands, And this is what appears: /dev/fd/14:18: command not found: compdef

766 Views Asked by At

When I use a terminal or zsh I can't run commands, And this is what appears:

# /dev/fd/14:18: command not found: compdef #

Does anyone know how to reset the terminal to normal mode?

I tried to solve it and the only thing that got my terminal back to normal is the elapsed time, but the problem is not solved because this line keeps repeating again, and then I'm stuck

3

There are 3 best solutions below

0
olivier On BEST ANSWER

Just put this line in .zshrc it's work for me:

autoload compinit compinit

i find the solution here : https://github.com/crissxross/dotfiles/commit/b755c6066267e357b16139bea355579eb3bd4af4

1
 Boaz MT On

I understood what the problem was, I just installed the latest version of Node js, and that's why I had this problem, when I reverted to a previous version it solved the problem

1
Yucong WANG On

I had a similar situation today, and after looking up the information, it was the reason why I installed Angular