antigen: Unable to load oh-my-zsh plugin

I cannot load the kubectl plugin since latest update (either of antigen or oh-my-zsh). I’m using antigen 2.2.1. It worked on the first 2.X versions, but recently it stopped working. I guess it has something to do with how the plugin itself is loaded:

.zshrc:

source antigen.zsh
antigen init .antigenrc

.antigenrc:

antigen use oh-my-zsh

antigen bundles <<EOBUNDLES
    kubectl
EOBUNDLES

antigen apply

Then try the kubectl completion, it doesn’t work for me. I also tested removing ~/.zcompdump* files. antigen list shows:

robbyrussell/oh-my-zsh ~ lib @ master robbyrussell/oh-my-zsh ~ plugins/kubectl @ master

If I remove the plugin from the bundles list and instead load it later with antigen bundle kubectl it works.

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Reactions: 9
  • Comments: 23 (4 by maintainers)

Commits related to this issue

Most upvoted comments

I have the same issue as @jaimehrubiks with aws and gcloud oh-my-zsh plugin. I’m running this on OSX (zsh 5.7.1, Antigen v2.2.2).

EDIT: Upgrade to v.2.2.3 and zsh 5.8 does not help.

Not working in 2.2.2, and as @nmaupu says, workaround does not work either if run from .zshrc or .antigenrc, it only works manually executing it once logged-in

Still not working in 2.2.3. I guess it may be related to cache mechanism.

looks like helm plugin is also not working 😦

golang of oh-my-zsh plugin doesn’t work with antigen on Ubuntu 16.04 LTS.

This bug also affects aws plugin of oh-my-zsh.

tmuxinator not working…

My ugly workaround:

In your .zshrc, after antigen apply or antigen init:

source $HOME/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/kubectl/kubectl.plugin.zsh

It’s fixing the issue if I source the file while in a zsh shell. If I source it from the ~/.zshrc file, it doesn’t do anything… I can’t figure out why …

I’m on vacations right now but in a week I can work on the issue.

@aserrallerios tested your workaround for the ubuntu plugin and it seems to works . Thanks

My ugly workaround:

In your .zshrc, after antigen apply or antigen init:

source $HOME/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/kubectl/kubectl.plugin.zsh

@aserrallerios I did that and did antigen reset but it didn’t do anything