1
0
Fork 0

Fix: must check for existence of .zcompdump before comparing times

pull/344/head
huyz 12 years ago
parent 13b501adaf
commit 4215a0fa44

@ -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 [[ -e "$zcompdump" && ("$zcompdump" -nt "${zcompdump}.zwc" || ! -s "${zcompdump}.zwc") ]];
zcompile "$zcompdump"
fi

Loading…
Cancel
Save