1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 18:39:26 +00:00

Update cache files when .zpreztorc file is modified

Fixes #1581
This commit is contained in:
Casey McGinty
2018-05-06 13:19:35 -07:00
committed by Kaleb Elwert
parent 6e179f24ab
commit 2995b7d0c8
4 changed files with 10 additions and 4 deletions

View File

@ -43,7 +43,7 @@ if [[ "$OSTYPE" == darwin* ]]; then
perl_path="$HOME/Library/Perl/5.12"
if [[ -f "$perl_path/lib/perl5/local/lib.pm" ]]; then
if [[ ! -s "$cache_file" ]]; then
if [[ "${ZDOTDIR:-$HOME}/.zpreztorc" -nt "$cache_file" || ! -s "$cache_file" ]]; then
perl -I$perl_path/lib/perl5 -Mlocal::lib=$perl_path >! "$cache_file"
fi