diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-10-03 21:41:21 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-10-03 21:41:21 +0300 |
commit | de00d42d6e3f82625b453461fae0deb56bd65006 (patch) | |
tree | b426fb0856dee9024668f627f3360ea39672f9e9 /internal/p10k.zsh | |
parent | d435235c29c0966295018fe15c64717436f909f6 (diff) |
don't zcompile state dump when root
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-x | internal/p10k.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 5d6f0dad..2b6519df 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3379,7 +3379,9 @@ function _p9k_dump_state() { exec {fd}>&- } zf_mv -f $tmp $__p9k_dump_file || return - zcompile $__p9k_dump_file || zf_rm -f $__p9k_dump_file.zwc + if [[ ${(%):-%#} == % ]]; then + zcompile $__p9k_dump_file || zf_rm -f $__p9k_dump_file.zwc + fi } function _p9k_restore_state() { |