Fix: must check for existence of .zcompdump before comparing times
This commit is contained in:
parent
13b501adaf
commit
4215a0fa44
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue