Commit 67d74cbc authored by Christian Höltje's avatar Christian Höltje Committed by ncanceill
Browse files

Don't override ZSH_COMPDUMP if already set.

This allows customization via .zshenv if wanted. This is helpful
for zsh developers and people who want to move it out of $HOME
parent fbf4a78a
......@@ -46,7 +46,9 @@ else
fi
# Save the location of the current completion dump file.
ZSH_COMPDUMP="${ZDOTDIR:-${HOME}}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
if [ -z "$ZSH_COMPDUMP" ]; then
ZSH_COMPDUMP="${ZDOTDIR:-${HOME}}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
fi
# Load and run compinit
autoload -U compinit
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment