Skip to content

Commit

Permalink
Check for the existence of .zcompdump before compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
huyz authored and sorin-ionescu committed Dec 20, 2012
1 parent 1d64ae9 commit 8b5a999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runcoms/zlogin
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8b5a999

Please sign in to comment.