ohmyzsh: complete:13: command not found: compdef

I am getting 2 instances of this error when I launch a new terminal window

complete:13: command not found: compdef
complete:13: command not found: compdef
complete:13: command not found: compdef
complete:13: command not found: compdef
jprice@xxx:pts/3-> /home » jprice  (0) 

I found this: #2315 and I have commented out line 25 in the check_for_upgrades.sh.

I have also backed up all my dotfiles and removed them, and used a clean install of oh-my-zsh and I still seem to get it.

I’m lost as to what else to do? Any suggestions?

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 21 (11 by maintainers)

Commits related to this issue

Most upvoted comments

I’m also getting the issue. I’ve tried removing ~/.zcompdump*, but they just generated again with every session.

Here is my latest file.

~/.zcompdump-5.2

Since this is the first hit for this error message on google: Just a little note to myself and others who run into this error while using zgen and loading OMZ modules: What you, and I, did wrong was not loading oh-my-zsh itself before its modules, as described in the readme of zgen: https://github.com/tarjoilija/zgen#load-oh-my-zsh-base

image

Today this message was shown. Can anybody help me? I’m on OS X, zsh 5.0.8 (x86_64-apple-darwin15.0).

UPD: I solve this problem. This problem was caused by nvm.