mirror of https://github.com/ohmyzsh/ohmyzsh.git
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 #9490pull/9508/head
parent
28265812f8
commit
9181954255
|
@ -51,7 +51,7 @@ alias cget='curl -s https://getcomposer.org/installer | php'
|
||||||
|
|
||||||
# Add Composer's global binaries to PATH, using Composer if available.
|
# Add Composer's global binaries to PATH, using Composer if available.
|
||||||
if (( $+commands[composer] )); then
|
if (( $+commands[composer] )); then
|
||||||
autoload -Uz _store_cache _retrieve_cache
|
autoload -Uz _store_cache _retrieve_cache _cache_invalid
|
||||||
|
|
||||||
_retrieve_cache composer
|
_retrieve_cache composer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue