diff options
author | Christian HoĢltje <docwhat@gerf.org> | 2014-04-23 00:34:22 -0400 |
---|---|---|
committer | ncanceill <nicolas.canceill@ens-cachan.org> | 2014-06-07 10:13:21 +0200 |
commit | 67d74cbc2d057ef8ae2d237f739b53f52919567f (patch) | |
tree | 510b2cd212dc0035e4b42534a09e70bb8f258a9c /oh-my-zsh.sh | |
parent | fbf4a78acfd9ad7b96e8add7990d871ba50b866e (diff) | |
download | zsh-67d74cbc2d057ef8ae2d237f739b53f52919567f.tar.gz zsh-67d74cbc2d057ef8ae2d237f739b53f52919567f.tar.bz2 zsh-67d74cbc2d057ef8ae2d237f739b53f52919567f.zip |
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
Diffstat (limited to 'oh-my-zsh.sh')
-rw-r--r-- | oh-my-zsh.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 3c0f4f8f5..c217b91bb 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -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 |