summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-12-11 16:54:22 +0100
committerMarc Cornellà <marc.cornella@live.com>2020-12-11 16:54:22 +0100
commit918195425576e57016c8415766a7d4e98bc2e260 (patch)
treead27afde1b6154f922aa7ce2574b0a61e212506f
parent28265812f8fb923788d74409cef3e5635793b38e (diff)
downloadzsh-918195425576e57016c8415766a7d4e98bc2e260.tar.gz
zsh-918195425576e57016c8415766a7d4e98bc2e260.tar.bz2
zsh-918195425576e57016c8415766a7d4e98bc2e260.zip
fix(composer): autoload `_cache_invalid` for antigen compatibility
Antigen doesn't call `compinit` until the user prompt is about to be shown, which means `_cache_invalid` isn't automatically autoloaded. This patch fixes that, though we should work towards a better caching mechanism. Fixes #9490
-rw-r--r--plugins/composer/composer.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/composer/composer.plugin.zsh b/plugins/composer/composer.plugin.zsh
index 75b03ffe7..218a13e5f 100644
--- a/plugins/composer/composer.plugin.zsh
+++ b/plugins/composer/composer.plugin.zsh
@@ -51,7 +51,7 @@ alias cget='curl -s https://getcomposer.org/installer | php'
# Add Composer's global binaries to PATH, using Composer if available.
if (( $+commands[composer] )); then
- autoload -Uz _store_cache _retrieve_cache
+ autoload -Uz _store_cache _retrieve_cache _cache_invalid
_retrieve_cache composer