1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-04 15:49:25 +00:00

Simplify the use of ZDOTDIR

This commit is contained in:
Sorin Ionescu
2013-05-20 14:50:34 -04:00
parent 773ca7ee50
commit 5c7bd2009c
7 changed files with 33 additions and 21 deletions

View File

@ -8,7 +8,7 @@
# Execute code that does not affect the current session in the background.
{
# Compile the completion dump to increase startup speed.
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
zcompdump="$ZDOTDIR/.zcompdump"
if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
zcompile "$zcompdump"
fi