Open jackcogdill opened 5 years ago
Hi @jackcogdill,
have you found a solution to this problem? I would also like to call antigen update
from a script of mine which executes update functions of several applications like Homebrew, SDKMAN, etc.
The following snippet inside a ZSH shell script doesn't do anything...
source /usr/local/share/antigen/antigen.zsh
antigen update
@svenjacobs I switched to using zplug since it seemed all around better.
I've also found that antigen selfupdate
leaves me with antigen version
at 2.2.2
(rather than 2.2.3
which has been released for "some time").
Might try zplug
Description
TL;DR, unixorn/autoupdate-antigen.zshplugin does not seem to be working.
Steps to reproduce
Minimal steps to reproduce this behavior:
Expected behavior:
Should auto update once a week and produce some output like this:
Current behavior:
Never outputs anything.
Software version
antigen version
Antigen develop (d1dd78b) Revision date: 2018-01-15 14:37:21 -0300zsh --version
zsh 5.5.1 (x86_64-debian-linux-gnu)uname -a
Linux (can't disclose)Configuration
.zshrc
More information
I went through the hassle of forking and rewriting the auto update plugin here.
After some debugging, it seems that everything in the plugin should work, except running
antigen update
orantigen selfupdate
finishes instantly with no output.I ran
which antigen
inside the script and it produced this output:It appears that
[[ "$ZSH_EVAL_CONTEXT" =~ "toplevel:*" || "$ZSH_EVAL_CONTEXT" =~ "cmdarg:*" ]]
evaluates to false. My question is, is this intended behavior for scripts? Why can we not useantigen update
inside of a plugin?