diff --git a/runcoms/zlogin b/runcoms/zlogin index 9e315775..e27e2332 100644 --- a/runcoms/zlogin +++ b/runcoms/zlogin @@ -9,7 +9,7 @@ { # Compile the completion dump to increase startup speed. zcompdump="${ZDOTDIR:-$HOME}/.zcompdump" - if [[ "$zcompdump" -nt "${zcompdump}.zwc" || ! -s "${zcompdump}.zwc" ]]; then + if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then zcompile "$zcompdump" fi