1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 10:29:25 +00:00

[#255] Use $ZDOTDIR or $HOME

This commit is contained in:
Sorin Ionescu
2012-09-03 16:13:53 -04:00
parent fb9a20591f
commit 8cdf06e386
7 changed files with 18 additions and 15 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="$HOME/.zcompdump"
zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
if [[ "$zcompdump" -nt "${zcompdump}.zwc" || ! -s "${zcompdump}.zwc" ]]; then
zcompile "$zcompdump"
fi