Browse Source

Check for the existence of .zcompdump before compiling

master
huyz 12 years ago committed by Sorin Ionescu
parent
commit
37f65b3f86
  1. 2
      runcoms/zlogin

2
runcoms/zlogin

@ -9,7 +9,7 @@
{ {
# Compile the completion dump to increase startup speed. # Compile the completion dump to increase startup speed.
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump" 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" zcompile "$zcompdump"
fi fi

Loading…
Cancel
Save