1
0
Fork 0

Check for the existence of .zcompdump before compiling

pull/353/head
huyz 12 years ago committed by Sorin Ionescu
parent decf3cd875
commit 37f65b3f86

@ -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

Loading…
Cancel
Save