]> arthur.barton.de Git - ax-zsh.git/commit
Cache: Read "zprofile" in the correct context in "zshrc" stage
authorAlexander Barton <alex@barton.de>
Fri, 7 Apr 2017 19:42:49 +0000 (21:42 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 7 Apr 2017 19:43:31 +0000 (21:43 +0200)
commitd1529bb40528aafd9bdb98ba5a03d4ecb79d82bb
treeacb2aa25361f0d47d67e28b49cbf1b5744b5c09b
parent23f598c1302868e7330d48bae129e1c905ddb557
Cache: Read "zprofile" in the correct context in "zshrc" stage

When in the "zshrc" stage, make sure that the "zprofile" stage has
already been handled. This uses the "01_zprofile" plugin which is used
in the "zshrc.cache" file itself as well, but can't be used successfully
there because it becomes sourced inside of a ZSH function; so we have to
source it in the global context manually ...

And use the cache "zprofile.cache" in the "01_zprofile" plugin, when
available.
ax.zsh
core/01_zprofile/01_zprofile.zshrc