terminalzshoh-my-zshzsh-completionzsh-alias

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


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


Solution

  • 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