Skip to content

Commit

Permalink
Globally defined variable in cache file
Browse files Browse the repository at this point in the history
  • Loading branch information
desyncr committed Apr 19, 2017
1 parent f88dd68 commit aa40aa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions bin/antigen.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -886,9 +886,8 @@ compdef () {}\NL"

_payload+=$_sources

_payload+="typeset -aU _ANTIGEN_BUNDLE_RECORD;\
_ANTIGEN_BUNDLE_RECORD=("$(print ${(qq)_ANTIGEN_BUNDLE_RECORD})")\NL"
_payload+="_ANTIGEN_CACHE_LOADED=true ANTIGEN_CACHE_VERSION='develop'\NL"
_payload+="typeset -gaU _ANTIGEN_BUNDLE_RECORD; _ANTIGEN_BUNDLE_RECORD=("$(print ${(qq)_ANTIGEN_BUNDLE_RECORD})")\NL"
_payload+="typeset -g _ANTIGEN_CACHE_LOADED=true ANTIGEN_CACHE_VERSION='develop'\NL"

_payload+="#-- END ZCACHE GENERATED FILE\NL"

Expand Down
5 changes: 2 additions & 3 deletions src/lib/zcache.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,8 @@ compdef () {}\NL"

_payload+=$_sources

_payload+="typeset -aU _ANTIGEN_BUNDLE_RECORD;\
_ANTIGEN_BUNDLE_RECORD=("$(print ${(qq)_ANTIGEN_BUNDLE_RECORD})")\NL"
_payload+="_ANTIGEN_CACHE_LOADED=true ANTIGEN_CACHE_VERSION='{{ANTIGEN_VERSION}}'\NL"
_payload+="typeset -gaU _ANTIGEN_BUNDLE_RECORD; _ANTIGEN_BUNDLE_RECORD=("$(print ${(qq)_ANTIGEN_BUNDLE_RECORD})")\NL"
_payload+="typeset -g _ANTIGEN_CACHE_LOADED=true ANTIGEN_CACHE_VERSION='{{ANTIGEN_VERSION}}'\NL"

_payload+="#-- END ZCACHE GENERATED FILE\NL"

Expand Down

0 comments on commit aa40aa1

Please sign in to comment.